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

Posted on 2009-02-24
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?
Question by:Xyptilon2
    LVL 5

    Accepted Solution

    You can check out the regex library from "boost":
    LVL 4

    Expert Comment

    LVL 13

    Author Comment

    I've tried to get Boost to work, but to no avail. I'm now looking at TPerlRegEx at 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?
    LVL 13

    Author Comment

    I've increased the point value... Any luck with the TPerlRegEx  component?
    LVL 13

    Author Closing Comment

    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!

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
    The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

    730 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now