RosettaCodeData/Task/Regular-expressions/Mathematica/regular-expressions.math

3 lines
153 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
StringCases["I am a string with the number 18374 in me",RegularExpression["[0-9]+"]]
StringReplace["I am a string",RegularExpression["I\\sam"] -> "I'm"]