Regular expression examples: Difference between revisions

Content deleted Content added
Clarified ? and * to say 'matches the the preceding pattern element'
No edit summary
Line 43:
$string1 = "Hello World\n";
if ($string1 =~ m/l+/) {
print "There are one or more consecutive letter \"l\"'s in $string1\n";
}
</pre>'''Output:'''<pre>