User to user discussion and support for UltraEdit, UEStudio, UltraCompare, and other IDM applications.

Find, replace, find in files, replace in files, regular expressions
3 posts Page 1 of 1

I am from Germany and I try to build a regular expression to find and replace in text with the "German Umlaute" äüöß

Example text:

Code: Select all
Hier ist es wunderbar und Klaus will noch bleiben!
Hier ist es schön und Biggi will bleiben!
Hier ist es häßlich und Rainer will gehen!

Now I will search and replace in the text and keep the fourth word with this regular expression:

Code: Select all
Hier ist es  ^([a-z]+^) und ^([a-z]+^)!

This does not work because the fourth word contains German umlauts. How can I fix it?

Greetings from Germany
With UltraEdit or Unix regular expression simply use [a-zäöüß]+ instead of [a-z]+ in search string of a case-insensitive search. And with Perl regular expression use [[:alpha:]]+ instead of [a-z]+ to find 1 or more alphabetic characters according to Unicode. See also Regex to find words with at least 1 alphabetic and 1 digit?
Best regards from Austria
Hi Mofi,
Thank u very much for your answer. It works.
And it is logic. Next time I will think before I ask stupid questions ... :-))))

Greetings from Germany
3 posts Page 1 of 1