Anonymous user
Regular expressions: Difference between revisions
Add Nimrod
m (→{{header|Sidef}}: code simplification) |
(Add Nimrod) |
||
Line 1,018:
<lang NewLISP >(regex "[bB]+" "AbBBbABbBAAAA") -> ("bBBb" 1 4)</lang>
=={{header|Nimrod}}==
<lang nimrod>import re
var s = "This is a string"
if s.find(re"string$") > -1:
echo "Ends with string."
s = s.replace(re"\ a\ ", " another ")
echo s</lang>
=={{header|Objeck}}==
|