The following escpapes slashes as well as backslashes.

<snip>
        # escape slash and backslash for later regex compat
        # the order is important, first the backslashes
        value=`echo $value | sed -s 's#\\\#\\\\\\\#g'`
        # then the slashes
        value=`echo $value | sed -s 's#/#\\\/#g'`
<snap>

Regards, matthias
-- 
   Matthias Wamser, mailto: [EMAIL PROTECTED]
   ILK Internet GmbH, Akademiestrasse 25 - 27, D-76133 Karlsruhe
   Tel: +49 (0) 721 9100 0, Fax: +49 (0) 721 9100 191
   http://www.ilk.net


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to