How to Use Regular Expression
-
Hi..I have an regular expression "^[a-zA-Z0-9_]([^@ ]*)@[a-zA-Z0-9]{2,}((\\.[a-zA-Z0-9]{2,}))*$" for Email Validation in java.I want same to do in VC++ , is there ant way to do it...? Plz help..!!!! thanks in Advance.
It's not enough to be the best, when you have capability to be great....
-
Hi..I have an regular expression "^[a-zA-Z0-9_]([^@ ]*)@[a-zA-Z0-9]{2,}((\\.[a-zA-Z0-9]{2,}))*$" for Email Validation in java.I want same to do in VC++ , is there ant way to do it...? Plz help..!!!! thanks in Advance.
It's not enough to be the best, when you have capability to be great....
have a look at Boost Regex http://www.boost.org/doc/libs/1_39_0/libs/regex/doc/html/index.html[^] (there are other libraries out there to do the same) 'g'
-
Hi..I have an regular expression "^[a-zA-Z0-9_]([^@ ]*)@[a-zA-Z0-9]{2,}((\\.[a-zA-Z0-9]{2,}))*$" for Email Validation in java.I want same to do in VC++ , is there ant way to do it...? Plz help..!!!! thanks in Advance.
It's not enough to be the best, when you have capability to be great....
Use the boost library. Look into Boost.Regex[^].
«_Superman_» I love work. It gives me something to do between weekends.
-
Hi..I have an regular expression "^[a-zA-Z0-9_]([^@ ]*)@[a-zA-Z0-9]{2,}((\\.[a-zA-Z0-9]{2,}))*$" for Email Validation in java.I want same to do in VC++ , is there ant way to do it...? Plz help..!!!! thanks in Advance.
It's not enough to be the best, when you have capability to be great....
Hello Pavan, This link will be helpful - Use regular expression in your C++ program[^]. Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
have a look at Boost Regex http://www.boost.org/doc/libs/1_39_0/libs/regex/doc/html/index.html[^] (there are other libraries out there to do the same) 'g'
You just about beat me to it. :)
«_Superman_» I love work. It gives me something to do between weekends.
-
You just about beat me to it. :)
«_Superman_» I love work. It gives me something to do between weekends.
yeah - funny isnt it - sometimes I see a post and no-one's answered it, an Im thinking someone's just about to push the 'Post' button .. and then sometimes, on a very rare occasion, its me 'g'
-
Hi..I have an regular expression "^[a-zA-Z0-9_]([^@ ]*)@[a-zA-Z0-9]{2,}((\\.[a-zA-Z0-9]{2,}))*$" for Email Validation in java.I want same to do in VC++ , is there ant way to do it...? Plz help..!!!! thanks in Advance.
It's not enough to be the best, when you have capability to be great....
If you're using VS2008, you can install the feature pack[^] and get regular expressions in the standard libraries[^]. Otherwise, do what the other answers suggest and use Boost - either Boost.Regex[^] or (if you're feeling adventurous) Boost.Xpressive[^]
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p