Re: [Boost-users] Using regex on a file

31 Aug
2006
31 Aug
'06
12:43 a.m.
Dave wrote:
My first thought was to use regex_search and pass it two stream iterators, one pointing to the beginning of the file and one representing the end of the file. Alas, this won't work since regex_search requires bidirectional iterators, which stream iterators are not.
You might consider using a file_iterator from Spirit. It is a random-access iterator for files, which sounds like exactly what you need. Check it out at http://www.boost.org/libs/spirit/doc/file_iterator.html. -- Todd
6750
Age (days ago)
6750
Last active (days ago)
0 comments
1 participants
participants (1)
-
Todd Greer