Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
8
Answers
Regex Hex Match
David Smith
12y
4.3k
1
Reply
Can someone help me write the regex for recognizing any hex value, I am struggling
Regex regexHexMatch = new Regex("\b0x[a-fA-F0-9]+\b");
if (regexHexMatch.IsMatch(data.ColorValue))
{
continue;
}
else
{
//Do something
}
Post
Reset
Cancel
Answers (
8
)
Next Recommended Forum
Trigger
View State?