This regex query run fine when i not insert any sign that not in [,.] before the word 'here' :
RegEx.Replace("My products or something / else here ", "My ((?:[a-z']* ??)*?)\s*([,.]|$| here)", "")
But it will be very very slow (freeze about 3-5 second or more) if i insert a sign that not in [,.] before the word 'here'. For example i insert the sign '/' before the word 'here' :
RegEx.Replace("My products or something / else here ", "My ((?:[a-z']* ??)*?)\s*([,.]|$| here)", "")
The problem gone when i add / to my pattern [,.] :
RegEx.Replace("My products or something / else here ", "My ((?:[a-z']* ??)*?)\s*([/,.]|$| here)", "")
But i want my regex ignore the sign / instead of matching the sign / as the end of my sentence. Why this problem come and how to resolve it ?