|
Boost : |
From: John Maddock (john_at_[hidden])
Date: 2007-05-02 04:11:18
Lorenzo Bettini wrote:
> I'll see whether this technique makes my regular expressions harder to
> read than a simple copy and paste solution.
>
> I thought there might be a syntax for it because I read in the regex
> documentation, in the section "Character classes that are supported by
> Unicode Regular Expressions" these syntaxes
>
> Ps Open Punctuation
> Pe Close Punctuation
>
> and I thought they might be related (by the way, I actually did not
> understand what they're for, since there's no example).
[[:Ps:]] matches any opening punctuation
[[:Pe:]] matches any closing punctuation
Exactly what that means is defined by the Unicode std, and these are only
supported by u32regex when Boost.Regex is built with ICU support enabled.
John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk