Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Answer: How do I match this without lookbehind?

by Shakya (Initiate)
on Oct 04, 2007 at 03:31 UTC ( #642553=categorized answer: print w/replies, xml ) Need Help??

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

my @results = $string =~ m!([^~]+)!g;

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[1nickt]: choroba no kidding! The muscle memory alone makes it insignificant. I suppose the addition of param checking is nice. But if you are using MOo anyway you are using Type::Tiny, and you can easily use T::T for params in regular methods.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2017-11-24 13:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (349 votes). Check out past polls.

    Notices?