use warnings; use strict; use re 'debug'; q{<td align="left"><b>A</b> - Tilt: 19° - Segments: 1(72-93)</td> +} =~ /\<td align\=\"left\"\>\<b\>A\<\/b\>\s+\-\s+Tilt\:\s+\d+\&\#\d+\; +\s+\-\s+Segments\:\s+(.*?)\<\/td\>/; print "$1\n"; __END__ # ... snip debugging stuff ... Match successful! 1(72-93)
So maybe your input is not what you are showing (maybe it's split on two lines?).
How do I match XML, HTML, or other nasty, ugly things with a regex?
In reply to Re: RegExp not working!
by Anonymous Monk
in thread RegExp not working!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |