通过 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