Help please: regular expressions in C++

This is a discussion on Help please: regular expressions in C++ within the C++ Programming forums, part of the General Programming Boards category; Hi everyone, how do you do? How can I evaluate regular expressions in C++? I want to evaluate the regular ...

  1. #1
    Baal reivaj7999's Avatar
    Join Date
    Aug 2005
    Posts
    3

    Unhappy Help please: regular expressions in C++

    Hi everyone, how do you do?

    How can I evaluate regular expressions in C++? I want to evaluate the regular expressions in the style of LIKE from SQL.

    Thank you guys.
    Regards
    reivaj

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,344
    One way is to use a regular expression library. The Boost regex library is already part of TR1 and will be part of the next standard. You can download it and get instructions from www.boost.org.

  3. #3
    aoeuhtns
    Join Date
    Jul 2005
    Posts
    581
    Maybe use the Boost Regex library (http://www.boost.org/libs/regex/doc/index.html). I don't know if they work the same as the ones from SQL.

  4. #4
    Registered User
    Join Date
    Nov 2004
    Location
    Slovenia, Europe
    Posts
    115
    reivaj7999: LIKE in SQL is not regullar expression... You can look Perl's regex, which is most common today...
    [C++]
    IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
    2nd compiler: g++ (GCC 3.4.3/4.0.0)
    3rd compiler: Borland 5.5
    [C#]
    IDE: Microsoft Visual C# Express 2005
    2nd IDE: SharpDevelop
    2nd compiler: csc in Command Prompt
    .NET Framework: 2.0
    [PHP]
    Core: 5.1.0 beta 3
    IDE: PHPEdit
    2nd IDE: Notepad
    Favourite extensions: exif,gd2,mysql
    Favourite PEAR packages: DB, XML_RSS, ID3
    Favourite databases: SQLite, MySQL

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Regular expressions [Boost]
    By Desolation in forum C++ Programming
    Replies: 8
    Last Post: 12-30-2006, 10:10 PM
  2. Regular expressions
    By JimpsEd in forum C Programming
    Replies: 5
    Last Post: 05-13-2006, 07:01 PM
  3. Regular expressions
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 01-23-2005, 09:36 PM
  4. Regular Expressions
    By Korn1699 in forum C# Programming
    Replies: 4
    Last Post: 01-12-2005, 12:50 AM
  5. regular expressions help
    By axon in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 09-09-2004, 08:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21