Alphanumeric Conditon

I recommend follow code.

Regex.Matches(src,“[^\w]+”).Count = 0

this code ‘Regex.Matches(src,“[^\w]+”)’ mean that src string contains characters other than AlphaNumeric.