> However, I'd like to hear about what you have in mind
> regarding the global switch. Bruce may be interested in it too.

I simply thought I'd be better if the plugin as opposed to PP recognised
(?#g) and (?#1). This way, no accident would happen if someone moved
such an expression from PP's new syntax to the plugin's services. Sure,
the expression would be valid, but, if the wrong service was used, the
results could be unexpected. In the same fashion, (?#m) could be used to
request match and (?#r) for replace.
If this is implemented on the plugin side, it would also allow us to use
simpler prefixes such as g/, /g, (g), or whatever you think would be
better... but I think using a comment is a better idea because, this
way, if someone moved such an expression from PP to another PCRE engine,
the expression would at least remain valid.

That said, I really don't mind the status quo: keeping that processing
on PP's side means less work for me and cleaner plugin code.

> Sometimes I don't want to introduce a variable only for the returned
> result of regex. However, all replace(g)/match(g) services need a
> variable to return the result to. And the new syntax of PP also needs
> a variable
[snipped]
> As now we have rg/mg services, one can use them in global case,
> however, no way in single case yet.

Aha, got it.

It would be trivial to fix, right? I would only need to add r/m services
(or r1/m1 or whatever you think would be better).

> It works fine in my quick tests. As a matter of fact, I've been using
> the latest pcre3.dll with the old regex.dll quite a while and never
> met an incompatibility problem till now. Maybe 'cause my usage was
> rather casual? Possibly...

Or simply because PCRE tries to maintain backwards compatibility?

What I'm worried about is this POSIX business. I know there are subtle
nuances between the Perl way and the POSIX way and I wonder if replacing
one library with the other as you did would alter the "flavour" of the
processing of one's expressions/data... apparently not.
Anyway, the plugin is now linked to the POSIX version of the new library
so, unless someone knows any better, I'll stop worrying and release the
next version with the two PCRE DLLs.



------------------------ 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/
 



Reply via email to