KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a difference between ^[a-zA-Z] and [^a-zA-Z] ? When I check in C#, Regex.IsMatch("t", "^[a-zA-Z]") // Returns true (I think it's correct) Regex.IsMatch("t", "[^a-zA-Z]") // Returns false There are a lot of web sites using [^a-zA-Z] for the alphabet. I'm not really sure which one is correct answer.
Tags (comma-separated)
Save Edits
Cancel