Saskia Van Der Elst wrote:
>
> I have trouble executing a search and replace through all files in a certain
> directory.
>
> I want to replace " _</pat" by "</pat"
>
> Can I match a white-space?
>
> I have tried the following regex:
>
> s/ _\</pat/"</pat"/g

The \s pattern matches any of LF, FF, CR, NL and space, which is
probably what you want. I doubt if you mean to include the double
quotes in the new string, and Tom's right that your slash is
ambiguous within the slash-delimited regex, so how about:

  s[\s*_\</pat][</pat]g

HTH,

Rob



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to