Simple:
function HasSpecialChars(string yourString)
{
return yourString.Any( ch => ! Char.IsLetterOrDigit( ch ) )
}
More Related Contents:
- extract number out strings c# [closed]
- RegEx to remove key and certificate headers and footers [duplicate]
- c# Regular Expression for the text below? [closed]
- Get string between two strings in a string
- Simple and tested online regex containing regex delimiters does not work in C# code
- Using RegEx to balance match parenthesis
- Using String Format to show decimal up to 2 places or simple integer
- Regular expression for decimal number
- How to keep the delimiters of Regex.Split?
- How to find multiple occurrences with regex groups?
- Regex to get NUMBER only from String
- Regex that accepts only numbers (0-9) and NO characters [duplicate]
- C# regex to remove non – printable characters, and control characters, in a text that has a mix of many different languages, unicode letters
- Need to perform Wildcard (*,?, etc) search on a string using Regex
- Why \b does not match word using .net regex
- RegEx for an IP Address
- Regex word boundary expressions
- Regex to match all us phone number formats
- How to remove numbers from string using Regex.Replace?
- .Net regex: what is the word character \w?
- Canadian postal code validation
- Regex to match a word with + (plus) signs
- c# regex matches example
- Using Directory.GetFiles with a regex in C#?
- C# regex pattern to extract urls from given string – not full html urls but bare links as well
- Regular expression for 10 digit number without any special characters
- C# Regex to match the word with dot
- C# Regex Issue “unrecognized escape sequence”
- Regex to match multiple strings
- C# Regex, Unrecognized escape sequence