
17 Aug
2007
17 Aug
'07
3:52 p.m.
izua wrote:
Hi everyone! I'm Richard from romania, and I'm pretty new to boost. I started using it because I need regex functionalities.
Is there a regex_search functionality that will show me all found entries for the given regular expression? Something like preg_match_all in PHP? For example, if i have a regex ([0-9]+?[\W]+?) and the search string "abcd123.ef56[tab]essn" it would return me 2 arrays of arrays: first with an array 123 and ., second with 56 and tab.
You can use regex_iterator to iterate through each of the matches. John.