我正在寻找这样的正则表达式:
<html>
<body>
@info
<input>.........</input>
@ok_test somthin here
</body>
</html>
我想要得到所有以“@”开头的字符串。 我尝试了 in php,但无法摆脱休息字符串后的空间。 我这样试了试我的正则表达式:
\b@[a-zA-Z0-9]*
但是仍然不能。 有人可以帮我吗? 谢谢。
我正在寻找这样的正则表达式:
<html>
<body>
@info
<input>.........</input>
@ok_test somthin here
</body>
</html>
我想要得到所有以“@”开头的字符串。 我尝试了 in php,但无法摆脱休息字符串后的空间。 我这样试了试我的正则表达式:
\b@[a-zA-Z0-9]*
但是仍然不能。 有人可以帮我吗? 谢谢。
Try this one:
/(^\@)[^\s]+/gm
It selects: