Regular expression examples: Difference between revisions

Content deleted Content added
mNo edit summary
m fix typo $string -> $string1
Line 84:
<pre>
$string1 = "Hello World\n";
if ($stringstring1 =~ m/el*o/) {
print "There is an 'e' followed by zero to many";
print "'l' followed by 'o' (eo, elo, ello, elllo)\n";