in reply to Re: Iterations in regex
in thread Iterations in regex
Thanks to both of you. I've tried adding and removing the g modifier, but never tried without the last operator.
The sample code was a simplification of my real problem, where I'm trying to capture one specific record from one kind of table from a set of html documents, where each field has it's own line in the source.
Doing that way, I had to split the original regex in two:
BTW, the original regex was something like this:
my ($k, @f) = ($h =~ m!<td.*?>(required_\d+_\d+.txt)</td>\s+(<td.*?> +(.+?)</td>\s+)+</tr>!m);
Then, the ",+" actually meant whitespace "\s+", but I wanted to make them visible in the output. ;-)
|
|---|