RosettaCodeData/Task/Regular-expressions/Mathematica/regular-expressions.math
2023-07-01 13:44:08 -04:00

2 lines
153 B
Text

StringCases["I am a string with the number 18374 in me",RegularExpression["[0-9]+"]]
StringReplace["I am a string",RegularExpression["I\\sam"] -> "I'm"]