Regular Expressions

hello,
I need the support of regular expressions to parse certain outputs..by googling i found out that boost regex is the most recommended..i couldnt properly figure out though what to do next...i have g++ (GCC) 4.4.0 (MinGW, Windows Vista) as my compiler and i dont use IDE's (directly write codes in notepad++ OR Vim)..

can someone pls tell me step by step process of having boost regex features at my disposal..boost site has too many links and is confusing..thanks

thanks!!
Download boost then extract the boost folder from the archive to your MinGW include folder.
That's it.
k..So no bjam's and b2's stated in the boost web site for some libraries like boost regex ?

i have started downloading...it's abt 87 MB's...i'll try what you said and get back
thanks!!
Ah yes, it seems Boost.Regex is one of the few boost libraries that need to be built.
Just follow the "Getting started" guide.
Just so you know, it takes a while for boost to compile. After it does, you need to move all those DLL and LIB files (in the "lib" directory) to your C:\MinGW\lib directory, and you will need copy all the stuff in the boost "include" directory to C:\MinGW\include\boost.

You will also need to be careful when compiling to link to the proper boost library. Sometimes it is not clear which one to use. For example, I have the following files:
libboost_regex-mgw44.lib
libboost_regex-mgw44-1_42.lib
libboost_regex-mgw44-d.lib
libboost_regex-mgw44-d-1_42.lib
libboost_regex-mgw44-mt.lib
libboost_regex-mgw44-mt-1_42.lib
libboost_regex-mgw44-mt-d.lib
libboost_regex-mgw44-mt-d-1_42.lib
libboost_regex-mgw44-mt-s.lib
libboost_regex-mgw44-mt-s-1_42.lib
libboost_regex-mgw44-mt-sd.lib
libboost_regex-mgw44-mt-sd-1_42.lib
libboost_regex-mgw44-s.lib
libboost_regex-mgw44-s-1_42.lib
libboost_regex-mgw44-sd.lib
libboost_regex-mgw44-sd-1_42.lib

Choosing which one is sometimes simply trying to compile with each one until you get the one your compiler is looking for...
Topic archived. No new replies allowed.