【发布时间】:2017-07-26 21:51:24
【问题描述】:
I want to replace mm units to cm units in my code. In the case of the big amount of such replacements I use regexp.
I made such expression:
(?!a-zA-Z)mm(?!a-zA-Z)
But it still matches words like summa, gamma and dummy.
How to make up regexp correctly?
标签: regex
\\b[0-9+]\\s?mm\\b?