Dependable Regular Expression

Okay all of you computer savvy folks… is the following regular expression and test case dependable?

Test case: "{D8ACEC1A-EF77-43BA-A0C5-82DCF0C9C39E}"

Regex: '/^\173[A-F0-9]{8}\055[A-F0-9]{4}\055[A-F0-9]

I am attempting to avoid MySQL injection so that is the reasoning behind the regular expression. I have tested it and seems to work. When I ask reliable I mean not only whether or not it can be fooled but also whether or not the way in which I have written it is efficient or am I being a complete n00b?

Please comment!

This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.