imrags has asked for the wisdom of the Perl Monks concerning the following question:
So, i wrote this regex to get the content<div class='roundedBoxBody'><p> #table that i need <p> </p></p>
However, it doesn't work, it doesn't give any error as well.$x = "<div class=\'roundedBoxBody\'><p>"; $y = '<p> \;</p></p>'; $content =~ /$x(.*)$y/ and $content_out = $1; print $content_out;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex not working
by davorg (Chancellor) on Jul 17, 2009 at 09:31 UTC | |
|
Re: Regex not working
by prasadbabu (Prior) on Jul 17, 2009 at 09:40 UTC | |
by davorg (Chancellor) on Jul 17, 2009 at 09:44 UTC | |
|
Re: Regex not working
by Anonymous Monk on Jul 17, 2009 at 09:36 UTC | |
|
Re: Regex not working
by imrags (Monk) on Jul 17, 2009 at 10:10 UTC | |
by grinder (Bishop) on Jul 17, 2009 at 12:03 UTC | |
by prantikd (Novice) on Jul 18, 2009 at 12:20 UTC |