Re: Assigning pattern matches to an array
- From: "DJ Stunks" <DJStunks@xxxxxxxxx>
- Date: 30 Dec 2006 11:22:45 -0800
Graham Stow wrote:
push(@matches, $line=~/\b\w+@\w+\b/g); did it for me
The pattern doesn't match an email address, but I can work on that...
well, for one thing, the \w metacharacter doesn't match a literal .
don't roll your own email address regexp.
perldoc Email::Address
-jp
.
- Follow-Ups:
- Re: Assigning pattern matches to an array
- From: Graham Stow
- Re: Assigning pattern matches to an array
- References:
- Assigning pattern matches to an array
- From: Graham Stow
- Re: Assigning pattern matches to an array
- From: John W. Krahn
- Re: Assigning pattern matches to an array
- From: Uri Guttman
- Re: Assigning pattern matches to an array
- From: Graham Stow
- Assigning pattern matches to an array
- Prev by Date: Re: Assigning pattern matches to an array
- Next by Date: dynamically loading perl modules
- Previous by thread: Re: Assigning pattern matches to an array
- Next by thread: Re: Assigning pattern matches to an array
- Index(es):
Relevant Pages
|