Hi,
I am trying to do a find-replace with wildcards that will match strings like:
την νομίζω
ΤΗΝ ΝΟΜΙΖΩ
Την μαρία
στην Μαρία
Στην Μαρία
ΣΤΗΝ ΜΑΡΙΑ
but will not match strings like:
την ντουντούκα
ΤΗΝ ΝΤΟΥΝΤΟΥΚΑ
Την Ντουντούκα
στην μπάντα
Στην Μπάντα
ΣΤΗΝ ΜΠΑΝΤΑ
I have used this find string:
([Ττ][Ηη])([Νν])( )([μν ΜΝ])
how can I adapt it so that it keeps matching words staring with "μ" or "ν" but does not match words starting with "μπ" or "ντ"?
Maybe this link will provide help ?
Quoting entire posts clutters the forum and makes threads hard to read !
If you are pleased with a member's answer then use the Star icon to rate it
Click here to see forum rules
Thanks, I know this page. I could use the [!] symbol, i.e.:
([Ττ][Ηη])([Νν])( )(μ[!π])
but as I understand I would have to break the string in 2 different find/replace operations (and I need to add more similar operations), so I was wondering whether it could be done in a more compact way.
You'd better use the VBA replace (without wildcards)
sub snb() with activedocument .content=replace(replace(.lcase("την ν","tin P"),"την ν","stin P") end with end sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks