Hi i've got a regex to clean a string from dirty chars (symbols):
Return Regex.Replace(strIn, "[^\w\s]", "")
But, it will also clean the dirty chars within the string.
What i'm trying to make is a regex that only checks the beginning of a string for dirty chars, and as soon as it finds clean char that it will check the end of the string.
how can i do this the best (or easiest) way
Return Regex.Replace(strIn, "[^\w\s]", "")
But, it will also clean the dirty chars within the string.
What i'm trying to make is a regex that only checks the beginning of a string for dirty chars, and as soon as it finds clean char that it will check the end of the string.
how can i do this the best (or easiest) way