Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Answer: How do I match this without lookbehind?

by Adam (Vicar)
on Dec 08, 2000 at 05:50 UTC ( #45669=categorized answer: print w/replies, xml ) Need Help??

Q&A > regular expressions > How do I match this without lookbehind? - Answer contributed by Adam

my @results = grep {$_} split /([~]*?[^~])/, $input;

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2017-04-28 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (525 votes). Check out past polls.