透過 RegexPal 的搜尋可能如下所示:
搜尋:\\x .*?\\x\*:::( \d+):(\d)
取代:\1.\2
其中 \\x .*?\\x\* 的意思是:僅在交叉引用內部進行搜尋
三個冒號 ::: 用於分隔上下文搜尋表達式和實際搜尋
實際搜尋表達式:( \d+):(\d) 一個或多個數字,後跟一個冒號,然後是另一個數字
取代:將第一個括號內的內容、一個字面句號以及第二個括號對的內容組合在一起
(我不知道有任何正則表達式的線上課程。)
A search via RegexPal could look like this:
Search: \\x .*?\\x\*:::( \d+):(\d)
Replace: \1.\2
Where \\x .*?\\x\* means: search only inside of cross references
The three colons ::: separate between the context search expression and the actual search
Actual search expression: ( \d+):(\d) One or more digits, followed by a colon and then another digit
Replace: Put together the content of the first expression in parens, a literal dot and the content of the second pair of parens
(I don’t know of any regex online sessions.)
機器翻譯自 English