in reply to Re: Re: use of constants in regex substitutions?
in thread use of constants in regex substitutions?

Oh, sure, but then your first suggestion, putting them in single quotes isn't going to work either, because I don't think the intent is to turn '.txt' into '\.mif'.

Abigail

  • Comment on Re: use of constants in regex substitutions?

Replies are listed 'Best First'.
Re: Re: use of constants in regex substitutions?
by edan (Curate) on Sep 23, 2003 at 15:38 UTC

    Quite right! Good thing I recommended the second option... ;-). I maintain that \Q is the right way to do it.

    --
    3dan