Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Answer: How do I match this without lookbehind?

by I0 (Priest)
on Dec 12, 2000 at 19:40 UTC ( #46266=categorized answer: print w/replies, xml ) Need Help??

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

Perl v5.6.0 does suport lookbehind
split /(?<=[^~])/ #or split /(?<!~)/ #or /(~?.)/g

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[Discipulus]: good morning monks, but what a day is preparing..

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2017-06-23 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (536 votes). Check out past polls.