Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: A complex recursive regex,help

by OM_Zen (Scribe)
on Feb 06, 2003 at 01:00 UTC ( #233011=note: print w/ replies, xml ) Need Help??


in reply to Re: A complex recursive regex,help
in thread A complex recursive regex,help

Hi Tachyon ,

my $a = "x|xx|xx|xxxx|xx|xxx|xx|xx|x"; $a =~ s/(?<=\|)xx(?=\|)/x x/g; print "[$a]\n";


This is the backward and forward assertions that I needed ,man , I have to learn more on this ,man THANKS A BUNCH Tachyonfor the help


Comment on Re: Re: A complex recursive regex,help
Download Code
Replies are listed 'Best First'.
Re: Re: Re: A complex recursive regex,help
by tachyon (Chancellor) on Feb 06, 2003 at 01:07 UTC

    Glad to help. The only bummer is that you cna't have variable width lookbacks (positive or negative) like (?<=x*) or (?<!x*) You can have variable width look forward assertions though (?=x*) or (?!x*) ar OK.....

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

      Hi Tachyon ,

      The variable width lookup stuff , I realise that after your code and the limitations too, THANKS A BUNCH man

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2015-07-31 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls