Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: regex replacement help

by jaimon (Sexton)
on Mar 30, 2011 at 17:06 UTC ( [id://896473]=note: print w/replies, xml ) Need Help??


in reply to Re^2: regex replacement help
in thread regex replacement help

Here, the splitting pattern would be a separate element

- J

Replies are listed 'Best First'.
Re^4: regex replacement help
by samarzone (Pilgrim) on Mar 31, 2011 at 10:36 UTC

    Oh yes. I didn't notice that. Thanks.

    I should have written a positive look behind regex

    @out = split /(?<=~)/, $string;
    --
    Regards
    - Samar

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-16 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found