Regular expression examples: Difference between revisions

Content deleted Content added
m cat
m Grammar
Line 45:
$string1 = "Hello World\n";
if ($string1 =~ m/l+/) {
print "There are one or more consecutive l'sls in $string1\n";
}
<B>Output:</B>
There are one or more consecutive l'sls in Hello World
 
</pre></td>