2012-05-13 9 views
-1

私はVB 2010とRegexを使って、HTMLブロック内の "[number]/[number]"というパターンのテキストを探しています。どのような正規表現検索パターンを使うべきですか?ありがとう!"150/2"のような文字列をRegexで検索

+0

月の数が負になりますか? 16進数?浮動小数点?科学的表記法?オクタル?先行ゼロ? –

+0

[3桁+ ve数]/[11桁未満でなければならない2桁+ ve番号] – antikbd

答えて

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. 
+0

ありがとう...完璧に動作します! – antikbd

関連する問題