--- In [email protected], Julien Pierrehumbert <[EMAIL PROTECTED]> 
wrote:
>
> > Yup, I suggest a way to expose the option, which will set the last
> > parameter of regcomp to REG_UTF8.
> > Could be a separate one '(?#u) or (?#8)' to '(?#g) or (?#1)', or may
> > be combined like (?#gu)?
> 
>  There's something that I'm wondering about... would
> (?#u) be permitted anywhere or only at the beginning of
> the expression?
> 
> And what do you think about separate services that
> enable that option (matchW or something)?
> 
> Any other ideas, people?
> 

PCRE has internal pattern modifiers that start with (? 

i,m,x,s,and U

but UTF-8 isn't one of the them. Ungreedy is capital U not lowercase u. 
In PHP the pattern goes between forward slashes and externally 
specified modifiers go at the end. They use lowercase u for UTF-8.

http://us2.php.net/manual/en/reference.pcre.pattern.modifiers.php

PCRE uses (?# for specifying internal comments.

I should think that whatever you do (if not a separate service) it 
would be only at the start or end of the pattern (only one or the 
other). I would not suggest attempting to split the pattern or make a 
new internal option. The native PCRE internal modifiers apply to the 
part of the pattern that follows the point of inclusion.

Regards,
Sheri




Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/power-pro/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to