Matching strings with RegExp
Posted: Thu Jun 23, 2005 9:40 am
Hello,
I want to match strings like
reutlingen
tübingen
Glashütte-Luchau
Glashütte - Luchau
Kurort Rathen
Weißbach b Königsbrück
Knappensee-Groß Särchen
Jämlitz-Klein Düben
Flughafen Leipzig/Halle
Stolzenhain a d Röder
So, allowed charachters are a to z, A to Z, ä, ü, ö, /, - and space (no other white space character!)
If the string holds any other characters or digits, there should be no match!
I thought character classes were the correct way, but I think I'm going the wrong direction...
Thanks for help!
I want to match strings like
reutlingen
tübingen
Glashütte-Luchau
Glashütte - Luchau
Kurort Rathen
Weißbach b Königsbrück
Knappensee-Groß Särchen
Jämlitz-Klein Düben
Flughafen Leipzig/Halle
Stolzenhain a d Röder
So, allowed charachters are a to z, A to Z, ä, ü, ö, /, - and space (no other white space character!)
If the string holds any other characters or digits, there should be no match!
I thought character classes were the correct way, but I think I'm going the wrong direction...
Thanks for help!