我正在使用VB 2010和Regex在HTML块中查找模式“[number] / [number]”的文本。我应该使用什么正则表达式搜索模式?谢谢 !
答案 0 :(得分:1)
(\d+)\s*\/\s*(\d+)
说明:
(\d+): One or more digits. Captured in first group.
\s* : Zero or more space like chars
\/ : The `/`. Escaped.
\s* : Zero or more space like chars
(\d+): One or more digits. Captured in second group.