如何对从 1 到 100 的罗马数字使用正则表达式?
How to use regex for roman numbers from 1 to 100?
我有一个文本文件,其中罗马数字后面是一些数字。我需要以通用方式使用正则表达式删除所有罗马数字,因为我有很多文本文件
XXII 99-1
V-2
(i)
(ix)
(vii)
regex for first and second ^[XIVC]\s[0-9]+\-\[0-9]+
regex for after 2nd line ^\([ixv]+\)
无法匹配正则表达式 任何人都可以帮助解决这个问题
试试这个正则表达式,替换为:
[\D]
这会找到所有 non-digits。
祝你好运!
我有一个文本文件,其中罗马数字后面是一些数字。我需要以通用方式使用正则表达式删除所有罗马数字,因为我有很多文本文件
XXII 99-1
V-2
(i)
(ix)
(vii)
regex for first and second ^[XIVC]\s[0-9]+\-\[0-9]+
regex for after 2nd line ^\([ixv]+\)
无法匹配正则表达式 任何人都可以帮助解决这个问题
试试这个正则表达式,替换为:
[\D]
这会找到所有 non-digits。 祝你好运!