Editing
Extract large number from text
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
使用正規表示法 ([[Regular expression]]) ,從文章內容中擷取長數字 輸入資料: 使用括弧符號 ( ) 或 ( ),框住長數字 <pre> (1)aaaa(12345) (2)bbb(1234567) (3)ccc(123456789) </pre> 預期結果 <pre> 12345 1234567 123456789 </pre> 使用支援正規表示法的文字編輯器,例如 [https://www.sublimetext.com/ Sublime Text] 。操作步驟 # 選單 File -> Replace # 啟用 Regular expression # Find What: {{kbd | key = <nowiki>.*[\(|(](\d\d+)[\)|)].*</nowiki>}} # Replace With: {{kbd | key = <nowiki>\1</nowiki>}} [[Category:Regular expression]] [[Category:Data Science]] [[Category:String manipulation]]
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:Kbd
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information