
Hi All, I am introduced to Boost Regex recently and I have tried a few examples and it seems quite powerful. My question: I would like to do what I could with "awk" using regex in Visual C++. For instance, to parse a line containing space as a separator. I think it is designed for adding such capabilities to C++ and I hope there exists an easy way to do so. I appreciate any useful information. Best regards, mmoges. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Metasebia Moges wrote:
Hi All,
I am introduced to Boost Regex recently and I have tried a few examples and it seems quite powerful. My question: I would like to do what I could with "awk" using regex in Visual C++. For instance, to parse a line containing space as a separator. I think it is designed for adding such capabilities to C++ and I hope there exists an easy way to do so. I appreciate any useful information.
Do the regex_token_iterator examples do what you want? http://www.boost.org/libs/regex/doc/regex_token_iterator.html John.
participants (2)
-
John Maddock
-
Metasebia Moges