Regular expressions: Difference between revisions

no edit summary
No edit summary
Line 201:
$0m3 4ll0c4t3d $tr1ng
</pre>
 
=={{header|Arturo}}==
 
<lang arturo>s: "This is a string"
 
// check for a match
if [contains s "/string$/"] -> print "yes, it ends with string"
 
// replace some characters
replace! s "/[as]/" "x"
print s</lang>
 
{{out}}
 
<pre>Yes, it ends with string!
Thix ix x xtring</pre>
 
 
=={{header|AutoHotkey}}==
1,532

edits