in reply to Re: conditional match in regex
in thread conditional match in regex
This also seems to work (at least in perl 5.6.1):
  p
/ ^ ( [\$%@*] | (<) ) ( .* ) (? (2) > ) # ( (2) stands for $2 (the (<) above)) $ /x;
  p
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: conditional match in regex
by jryan (Vicar) on Nov 05, 2002 at 21:47 UTC | |
by petral (Curate) on Nov 05, 2002 at 23:08 UTC | |
by jryan (Vicar) on Nov 06, 2002 at 08:09 UTC | |
by petral (Curate) on Nov 06, 2002 at 14:58 UTC | |
by jryan (Vicar) on Nov 06, 2002 at 16:19 UTC | |
|
In Section
Seekers of Perl Wisdom