Regular expressions: Difference between revisions

Content added Content deleted
No edit summary
Line 201: Line 201:
$0m3 4ll0c4t3d $tr1ng
$0m3 4ll0c4t3d $tr1ng
</pre>
</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}}==
=={{header|AutoHotkey}}==