Here is what I have tried along with at least 20 other attempts but cant get it to work:myword nextLine
open(TMPFILE,"<main.html"); while (<TMPFILE>) { if ($_ =~ /myword\s+nextLine/) #ALSO tried: if ($_ =~ /myword\nnextLine/) # if ($_ =~ /myword\\nnextLine/) { print "$_\n"; } } close TMPFILE;
In reply to Two lines Regular Expression by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |