--- In [email protected], Julien Pierrehumbert <[EMAIL PROTECTED]> wrote: > > > Personally I think replaceg/matchg should be the default one. > > I was once curious why PCRE didn't introduce switch g(lobal) like > > i(gnore-case), m(ulti-line), s(ingle-line). > > PCRE has multi-line and single-line switches. > I didn't want to answer that before I found the messages explaining it > to the list so that credit can go where credit is due (Luciano and > Cüneyt). Here you are: > http://article.gmane.org/gmane.comp.windows.power-pro/8504 > http://article.gmane.org/gmane.comp.windows.power-pro/8510 > > I don't know about ignore-case (RTFM!) but, so far as I know and barring > recent changes in PCRE, the application is left to implement global > operations. My impression is that this is supposed to be a Good Thing... > as implemented by the plugin (and most, if not all, implementations), > some PCRE features are broken by performing operations globally.
PCRE has four switches: i, m, s, x(tended) I suppose that i, m, s are common practices in most of regex engines. x seems to be a unique feature of PCRE, however I'm not sure. It's supposed to increase the readability of the regular expressions, by ignoring in patterns PCRE specific white space characters, practically space and (horizontal) tab. Sean ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/JV_rlB/TM --------------------------------------------------------------------~-> 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/ <*> 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/
