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