--- In [email protected], "entropyreduction"
<alancampbelllists+ya...@...> wrote:
>
> --- In [email protected], "Sheri" <sherip99@> wrote:
>  
> > Had a problem with regex.pcreQuoteMeta.
> 
> What problem?

I had removed global declaration from my startup event.

regex.pcrequotemeta was the first regex function I used (in a script).

Got an error, no existing regex_status variable.

If instead of using that script first, I click the button that causes
regex.pcrematchall and regex.pcrereplace to get used by the pcf, a
global variable gets created by regex plugin.

Then when I use the script afterwards that has regex.pcrequotemeta in
it, it uses the global variable.

That's what made me think it would be simplier for regex to just go
ahead and make itself a global variable up front.

> 
> I could instead just do nothing, and leave it up to user to declare
> regex_status every time and always.
>

Still up to user, can add a local variable if he doesn't want to use
an existing global one.

For regex to have a dependable global variable, would it be better for
PowerPro to make it? There is a global _regexp_ variable.

Regards,
Sheri

Reply via email to