Thread: using regex

  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    85

    using regex

    Is there a way I can use regular expressions in my code ? Like, a standard library or something like that? I've been googling around, but I haven't found something I can use.
    Last edited by _izua_; 08-09-2007 at 06:48 PM.

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    752
    Callou collei we'll code the way
    Of prime numbers and pings!

  3. #3
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    Check out the Boost Regex implementation.

  4. #4
    Registered User
    Join Date
    Aug 2007
    Posts
    85
    hmm, I'm using DevC++ and I get a ton of linker errors with the default credit card checking program. Reading part of the documentation, they say the linking is done automatically, so I don't have to pass any parameters.

    I've installed boost by its default installer, and I've also installed the devpak. I've added boost directory to the list of include directories.

    I don't know what else can be wrong. Any hints?
    Thanks.

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Reading part of the documentation, they say the linking is done automatically, so I don't have to pass any parameters.
    This is probably only the case if you use a special Boost template when you go New Project or whatever. Otherwise, you'd have to link with boost by hand.

    You wouldn't be able to just open up a Boost source file and compile it. You'd probably need to create a Boost project, add the source file to the project, and then compile it.

    Alternatively, of course, you can link with Boost by hand. Create an empty project and in the project settings (ALT-P) and add -lBoost_regex (I think that's what it is) to the Extra Linker Options textbox (or whatever it's called).
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems with Boost Regex in Eclipse CDT
    By Hunter0000 in forum C++ Programming
    Replies: 4
    Last Post: 01-13-2010, 12:22 PM
  2. regex help
    By Jaqui in forum Tech Board
    Replies: 8
    Last Post: 10-14-2006, 03:53 PM
  3. My own regex...............class?
    By misplaced in forum C++ Programming
    Replies: 5
    Last Post: 04-08-2005, 09:18 AM
  4. <regex.h> regex syntax in C
    By battersausage in forum C Programming
    Replies: 7
    Last Post: 03-24-2004, 01:35 PM
  5. How is regex used?
    By Strider in forum C++ Programming
    Replies: 0
    Last Post: 12-14-2001, 08:15 AM