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
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
Aman. j

Maybe this will help:


1 Like

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

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


So just include .[dot] in the regex.

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

Unfortunately, It is not working for me.

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

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
Regex.xaml (10.6 KB)

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