Hello guys,
is there a standard library in VS for using regular expressions?i know unix has regexec, i am trying to find something which is as close to this as possible
thanks
This is a discussion on regular expression within the C++ Programming forums, part of the General Programming Boards category; Hello guys, is there a standard library in VS for using regular expressions?i know unix has regexec, i am trying ...
Hello guys,
is there a standard library in VS for using regular expressions?i know unix has regexec, i am trying to find something which is as close to this as possible
thanks
If you are using Visual Studio 2008 or 2010, you should be able to use the regular expression functionality in the TR1 extensions to the standard library, i.e., #include <regex> and use std::tr1::regex.
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way
hello there, thanks for your reply, i have done what you said and it works, i jsut have one question.
in unix you do a regcomp before doing a regexec, but it seems as though the equivalent on windows is just simply calling regex_search, am i correct or have i misunderstood something?