[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2009-02-24
5
Medium Priority
?
2,149 Views
Last Modified: 2013-11-17
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?
0
Comment
Question by:Xyptilon2
  • 3
5 Comments
 
LVL 5

Accepted Solution

by:
migoEX earned 2000 total points
ID: 23721028
You can check out the regex library from "boost":
http://www.boost.org/doc/libs/release/libs/regex/
0
 
LVL 4

Expert Comment

by:lhl60
ID: 23734106
0
 
LVL 13

Author Comment

by:Xyptilon2
ID: 23757279
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
 
LVL 13

Author Comment

by:Xyptilon2
ID: 23763277
I've increased the point value... Any luck with the TPerlRegEx  component?
0
 
LVL 13

Author Closing Comment

by:Xyptilon2
ID: 31550539
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question