in reply to Extended Regular Expressions
This code prints:#!/usr/bin/perl -l $_ = '<a href= ?a=500011&w=2&r=1 >joe@blow.com</a>'; print $& if /^<a href.*>[^\z]/; print $& if /^<a href.*>(?=[^\z])/;
Perhaps you want to use:<a href= ?a=500011&w=2&r=1 >j <a href= ?a=500011&w=2&r=1 >
That kinda matches a tag, followed by kinda the non-tag stuff after it./^<a [^>]+>([^<]+)/
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|