Question Rodrigo Werneck · Mar 20, 2018 Bad regex? #Caché Set rm=##class(%Regex.Matcher).%New("[0-9]*","Word 123456") Write rm.ReplaceAll(".") .W.o.r.d. .. Why??
Timothy Leavitt · Mar 20, 2018 What are you trying to do? This? USER>Set rm=##class(%Regex.Matcher).%New("[0-9]","Word 123456") USER>Write rm.ReplaceAll(".") Word ...... Or: USER>Set rm=##class(%Regex.Matcher).%New("[0-9]+","Word 123456") USER>Write rm.ReplaceAll(".") Word .
Rodrigo Werneck Mar 20, 2018 to Timothy Leavitt Sorry, [0-9]+ indeed (I was testing with GNU grep -o with '*' and results are the same).Thanks
Fabian Haupt · Mar 20, 2018 This: https://www.regular-expressions.info/ is a very good resource to get started on regexes. Cheers
Could you explain what you wanted to achieve?
What are you trying to do? This?
Or:
Sorry, [0-9]+ indeed (I was testing with GNU grep -o with '*' and results are the same).
Thanks
This: https://www.regular-expressions.info/
is a very good resource to get started on regexes.
Cheers