Page 1 of 1

Multiple searc-replace

Posted: Wed Jun 12, 2013 7:20 pm
by speek
Hi all,

I do have 1 ascii file with > 5.000 lines.
There are hundreds characters present with accent-marks (é ë ü etc).
Search-replace each individual accent-mark (more then 60 diffent types present) by it's equivalent without the accent-mark is rather time consuming.
Is there an easy way to solve this?

Gerrit

Posted: Fri Jun 14, 2013 6:21 am
by MudGuard
You could reduce it to one replace for all accented e, one replace for all accented a, ...

Search with regex checked for
[éèê]
replace by
e

Next search with regex checked for
[áàâä]
replace by
a

and so on.

Posted: Tue Jun 18, 2013 1:10 pm
by ben_josephs
Something like this should do what you want in a single step:

Search | Replace... (<F8>):
Find what: ([àáâãäå])|([èéêë])|([ìíîï])|([òóôõöø])|([ùúûü])
Replace with: (?1a)(?2e)(?3i)(?4o)(?5u)

[X] Regular expression

Replace All
(Look in TextPad's help in the section Reference Information | Replacement Format Strings under the heading Conditionals.)

But it doesn't work.

I have pointed out to TextPad's developers why it doesn't work, and they say they will fix it in the next release.