Partial matching with Regex doesn't work

I wrote a code like

//need to match like Kate Kata Mata Kaka Kati

but all string matched to this expression
what is the problem?

Did you try removing the last pipe in the regex?. Like this Regex.IsMatch(“Kate”,".ate|K.te|Ka.e|Kat.")

Rammohan B.

Hi @Rammohan91
It worked perfectly ! and was easy Regex mistaking…

Thanks a lot!