Re: conditional regular expressions
- From: Mirco Wahab <wahab@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 14 Aug 2007 14:35:44 +0200
anno4000@xxxxxxxxxxxxxxxxxxxxxx wrote:
Mirco Wahab <wahab@xxxxxxxxxxxxxxxxxxx> wrote in comp.lang.perl.misc:Tad McClellan wrote:Morfys <morfysster@xxxxxxxxx> wrote:Just out of couriosity, what's the"open(X,X)"$_ = 'open(X,Y,Z)';
and
"open(X,X,X)"
my @parts = /(\w+)(?=[,)])/g;
purpose of these fancy parenthesis
around \w+ ? Is there any hidden
mechanics to use them this way?
Hmm? What's fancy about them. They're normal capturing parentheses.
I wouldn't consider normal in the said example,
therefore my question: "does the perl regex
engine distinguish internal" between
my @foo = /\w+(?= bar)/g;
and
my @foo = /(\w+)(?= bar)/g;
I can't answer this for myself,
thats the reason I asked Tad.
Regards
M.
.
- Follow-Ups:
- Re: conditional regular expressions
- From: anno4000
- Re: conditional regular expressions
- References:
- conditional regular expressions
- From: Morfys
- Re: conditional regular expressions
- From: Morfys
- Re: conditional regular expressions
- From: Tad McClellan
- Re: conditional regular expressions
- From: Mirco Wahab
- Re: conditional regular expressions
- From: anno4000
- conditional regular expressions
- Prev by Date: Re: conditional regular expressions
- Next by Date: Re: Pagination II
- Previous by thread: Re: conditional regular expressions
- Next by thread: Re: conditional regular expressions
- Index(es):
Relevant Pages
|