Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: Re: Re: Re: Re: Re: conditional match in regex

by petral (Curate)
on Nov 06, 2002 at 16:46 UTC ( #210791=note: print w/replies, xml ) Need Help??


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.
$ 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://210791]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2020-01-28 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?