On Tue, Sep 07, 2004 at 03:06:32PM +0200, Paul Johnson wrote:
> On Tue, Sep 07, 2004 at 01:38:57PM +0200, [EMAIL PROTECTED] wrote:
>
> > Suggested correction to perlintro in perl v5.8.1.
> Thanks. I suspect the RE should have been /([EMAIL PROTECTED])@(.+)/ and I will
> forward such a patch to
On Tue, Sep 07, 2004 at 01:38:57PM +0200, [EMAIL PROTECTED] wrote:
> Suggested correction to perlintro in perl v5.8.1.
>
> Now:
>if ($email =~ /([EMAIL PROTECTED])+@(.+)/) {
>print "Username is $1\n";
>print "Hostname is $2\n";
>
Hi,
Suggested correction to perlintro in perl v5.8.1.
Now:
Parentheses for capturing
As well as grouping, parentheses serve a second purĀ
pose. They can be used to capture the results of
parts of the regexp match for later use. The results
end up in