Regex Pattern

Hy all,
can some body help me with is regex problem i have some name with some different letter like % ,1\4,Ã,¶ and many more.Which pattern with help me to avoid the name which contains these special letters. I want only alphabets.

Thanks in advance!
for example
Knöpfle
Blöchl
Fırat Akçoray

This is a interesting question. I am still learning regex so would like to learn more from this post. :smile:

Hi @deepa.barode,
But you want a pattern which will choose names except those with diacritics or something which will change diacritics for normal letters?

I use this to remove all the special characters from a String.
System.Text.RegularExpressions.Regex.Replace(yourString, “[^a-z A-Z]”, “”)

Check if this helps.

both will work for me but excepting those diacritics would be more suitable for my workflow.

[quote=“chandu4712, post:4, topic:132016”]
[^a-z A-Z]
Thank you for your effort but actually i have .Dot in my search result.
for example
Dr.Abc
or
Aman. j

Maybe this will help:
regexr.com/4h5j9

image

1 Like

Yes, that worked for me but i have some names with title Like Dr.
for example
Dr.Abc
Sophie .j lampe

image
This is somehow working but you need to cut off the spaces.

2 Likes

So just include .[dot] in the regex.

Try this:
System.Text.RegularExpressions.Regex.Replace(yourString, “[^a-z A-Z.]”, “”)

Untitled
Unfortunately, It is not working for me.

Ok… so… this is what I’ve got:
image

1 Like

Hello @deepa.barode
Go through This workflow This will replace all the words containing Special characters with space
This was my input


This is the Output
String2
Regex.xaml (10.6 KB)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.