in reply to Re: Regex Question
in thread Regex Question

That will only match slashes surrounded by a character on both sides. (?!\d) is not the same as \D.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^3: Regex Question
by ikegami (Patriarch) on Nov 15, 2005 at 20:11 UTC
    And it won't work when there are multiple slashes in a row. Only some of them will get converted. Sorry, I meant to mention the caveats. I knew about them, but I thought they might be acceptable to the OP.