我正在尝试创建一个与#rn匹配的正则表达式:但是如果它后面是msg,则不会。
所以
#rn:abc -> matches
#rn:msh -> matches
#rn:xy -> matches
#rn:defg -> matches
#rn:msg - does not match
我已经尝试过\#rn\:[^m][^s][^g]
,\#rn\:[^(msg)]
但是它们不起作用。
能做到吗
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句