Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

A complex recursive regex,help

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

Help for this page

Select Code to Download


  1. or download this
    
         my $a = "x|xx|xx|xxxx|xx|xxx|xx|xx|x";
    ...
         This gives the output
    
         [x|x x|xx|xxxx|x x|xxx|x x|xx|x]
    
  2. or download this
         while($_ =~ s/x\|xx\|x/x\|x x\|x/g){
                                            }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://233001]
Approved by Enlil
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2018-07-20 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (429 votes). Check out past polls.

    Notices?