Boost logo

Boost Users :

From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2007-07-04 13:41:16


On 7/4/07, david v <danova_fr_at_[hidden]> wrote:
> Ok i understand david and divad is the same so it's normal to find it twice,
> however why it always return as match "David" and not both matches "david"
> and "divad" in the order they appear in the searched string??? does not make
> sense to me ?? How can i get the matches in the same order they appear in
> the string ??
>

match returns what part of the input string matched the regex, not
what part of the regex matched the input string.

so
regex = "f*.r"
stringtosearch = "foobarblah"

match is "foobar" not "f*.r"

Is that the confusion here?

Tony


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net