
Okay, thanks, that makes a bit more sense!
Derrick
2007/2/15, Chris Uzdavinis
On 2/15/07, Derrick Schommer
wrote: I'll give that a try, thanks. Just cannot see why is it that .{1,3} doesn't have the same effect given the only difference is the exclusion of a 'b'.
I'm getting the impression that you have a wrong impression of regular expressions. When you say .[^b] the [^b] is not modifying the . expression. What you have are two regular expressions next to each other, first the dot (for one character), then [^b], which matches anything except b. So .[^b] matches 2 characters, "any-character followed by any-character-except-b". Now when you put the repeatitions on it, ".[^b]{1,3}" you have "any-character followed by one-to -three-characters-that-aren't-b"
Hope that helps. Chris _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users