标签: regex
我想在字符串“symbol(##)”中的“##”字符之后匹配值。目前我正在使用这个正则表达式:(/##([\w\d.]*)/)返回匹配但没有价值 - 我做错了什么?
(/##([\w\d.]*)/)
答案 0 :(得分:0)
只需将*量词更改为+。
*
+
##([\w\d.]+)
+ Between one and unlimited times, as many times as possible, giving back as needed [greedy]