Regular expression examples: Difference between revisions

Content deleted Content added
Examples: I liked the "same as" example. Added "same as" examples to others.
Line 283:
 
<tr>
<td>\Zz</td>
<td>Matches the end of a string (but not an internal line).<br/> see Perl Best Practices Page 240</td>
<td align="left">
<pre>
$string1 = "Hello\nWorld\n";
if ($string1 =~ m/d\n\Zz/) {
print "$string1 is a string ";
print "that ends with 'd\\n'\n";