Regular expressions: Difference between revisions
m
→{{header|Mathematica}}
m (→{{header|C++}}: format fix) |
|||
Line 1,500:
"Maple is Canadian"</pre>
=={{header|Mathematica}}/{{header|Wolfram Language}}==
<lang Mathematica>StringCases["I am a string with the number 18374 in me",RegularExpression["[0-9]+"]]
The in-notebook output, in order:
<pre>{18374}
I'm a string</pre>▼
▲I'm a string
=={{header|MAXScript}}==
|