Using regular expressions in C++ Builder, IP address validation in particular

I am familiar with regular expressions, but how can i use them in C++Builder. In this case I want to validate an AnsiString for IP address validity, does anybody have an example?
LVL 13
Xyptilon2Asked:
Who is Participating?
 
migoEXConnect With a Mentor Commented:
You can check out the regex library from "boost":
http://www.boost.org/doc/libs/release/libs/regex/
0
 
Xyptilon2Author Commented:
I've tried to get Boost to work, but to no avail. I'm now looking at TPerlRegEx at
http://www.regular-expressions.info/delphi.html which works well in Delphi, and i think it should be able to work in C++ builder as well, but i cant seem it to work. I dont necessarily need design-time functionality, so i thought just including the headers is enough for the runtime functionality, however im getting unresolved externals. Can any of you get it to work under C++builder 2007?
0
 
Xyptilon2Author Commented:
I've increased the point value... Any luck with the TPerlRegEx  component?
0
 
Xyptilon2Author Commented:
I downloaded Codegear 2009 trial and it has Boost installed and i got it working, now i just need to upgrade my 2007 to 2009, will do that later this week. Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.