Jump to content

Regular expressions: Difference between revisions

add m4
(Added Erlang)
(add m4)
Line 370:
// newSubject == "Replaced!"
var newSubject = subject.replace(re_PatternToMatch, "Replaced");</lang>
 
=={{header|M4}}==
<lang M4>
regexp(`GNUs not Unix', `\<[a-z]\w+')
regexp(`GNUs not Unix', `\<[a-z]\(\w+\)', `a \& b \1 c')
</lang>
 
Output:
<pre>
5
a not b ot c
</pre>
 
=={{header|Objective-C}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.