[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Search/Replace with a leading blank fails


>
> This is what it means: "whole words only". You want to match words only,
> and so you can't use a character that is forbidden inside a word.
>
> The meaning of "word" is hard-coded, it's the following regular expression:
>
> (^|[^_$[:alnum:]])<word>($|[^_$[:alnum:]])
>

Maybe the searched string should go through Trim() in the "words only" case
to avoid mistakes like this.


Jussi

References:
Search/Replace with a leading blank failsKarl Reinl <karl.reinl@xxxxxxxxxx>
Re: Search/Replace with a leading blank failsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Search/Replace with a leading blank failsKarl Reinl <karl.reinl@xxxxxxxxxx>
Re: Search/Replace with a leading blank failsKarl Reinl <karl.reinl@xxxxxxxxxx>
Re: Search/Replace with a leading blank failsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Search/Replace with a leading blank failsKarl Reinl <karl.reinl@xxxxxxxxxx>
Re: Search/Replace with a leading blank failsBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>