Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 VB 2010 和 Regex 在 HTML 块中查找模式“[number]/[number]”的文本。我应该使用什么正则表达式搜索模式?谢谢 !
(\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.