in reply to Re: Re: Re: Re: Re: Re: Re: conditional match in regex
in thread conditional match in regex
Right.  I was just showing how the regex works.
  p
$ perl -le'"%xyz"=~/([\$@*%]|(<))(.*)((?(2)>))/;print"($1)($3)($4)"' (%)(xyz)() $ perl -le'"%xyz>"=~/([\$@*%]|(<))(.*)((?(2)>))/;print"($1)($3)($4)"' (%)(xyz>)() $ perl -le'"<xyz>"=~/([\$@*%]|(<))(.*)((?(2)>))/;print"($1)($3)($4)"' (<)(xyz)(>)
  p
|
---|
In Section
Seekers of Perl Wisdom