in reply to Regex Help

I imagine you're having quoting problems. Note that you're using ' as your shell quote, but you're searching for it in the REx.

It will probably be easiest to use double quotes in the shell, although that will complicate things with the `$' in a REx.

perl -pi.orig -e "s#<% \\\$flat->purge\('dynamix','outburst'\) %>#\$CONFIG{DYNAMIX_OUTBURST}#" www/index.html

Replies are listed 'Best First'.
(meonkeys: A case of the \\\s)
by meonkeys (Chaplain) on Sep 23, 2000 at 04:59 UTC
    Ah! I think I've got it (with dchetlin's help)...
    The trick is to triple escape any $ characters
    perl -pi.orig -e "s#<% \\\$flat->purge\('dynamix','outburst'\) %>#\\\$ +CONFIG{DYNAMIX_OUTBURST}#" www/index.html
    This MAY be shell-dependant.
    Anyone know any more about this?

    Thank you! Note to self: "Boy, I love it when that dim bulb lights up. Must be Friday."