|
Boost Users : |
From: Eric Niebler (eric_at_[hidden])
Date: 2006-04-13 13:08:21
Jean-Sebastien Vachon wrote:
> On Thu, 13 Apr 2006 10:59:54 +0100, John Maddock wrote:
>
>>> ((((|(^\\\\[^\\;:\'\"<>]+\\[^\\]+\\)))))(((([^\\;:\'\"\<\>]+)\\)*)*)((([^\\;:\'\"<>]*))(\.?([^\\:;\'\"<>]+)))?)
>> Is the (^([a-z]:\\?) part supposed to match "c:" ? If so it won't because
>> of the literal "?".
>>
>> There are several possible candidates at http://regexlib.com BTW as well.
>>
>> John.
>
> In the (^([a-z]:\\?) I want to make the last \ optionnal not to have
> a literal ?.
>
> Should I change this to: "(^([a-z]:\\\?)" ?
One more slash ought to do it: "(^([a-z]:\\\\?)". Think of it this way:
write the pattern as you would in perl. Then double every backslash.
-- Eric Niebler Boost Consulting www.boost-consulting.com
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