Regex search/replace with conditions
Hi,
since a short time I'm re-editing a series of weeklys and I'm already a little bit familiar with regexes.
But up to the moment I did not find a regex which can do the following:
I want to replace in a lot of the weeklys 3 dots by the … (…). The difficulty is, that in some cases the 3 dots are directly preceded by a letter, sometimes by a blank/space.
I want to find both cases with one search and replace them with "blank…" if directly preceded by any kind of letter etc. or only with the … if they are preceded by a blank already.
Can anyone of you experts give me a hint how to get it working?
1000 thanks and advance,
Peter
Last edited by Jellby; 02-17-2014 at 02:59 PM.
Reason: add markup to avoid smileys
|