Yes it does. You can (and should) do this by a single regex. Like this:
if ($html =~ /Rapporteur: (\S+ \S+)/) { $reporters_name = $1; }
The regexp searches for "Rapporteur:" followed by a single space, then some non-space characters, a single space and again some nonspace chars. And it captures those two groups of nonspace characters.
Jenda
Always code as if the guy who ends up maintaining your code
will be a violent psychopath who knows where you live.
-- Rick Osborne
In reply to Re^3: Substr warning
by Jenda
in thread Substr warning
by New Novice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |