--- In [email protected], "entropyreduction" <alancampbelllists+ya...@...> wrote: > > > --- In [email protected], "Sheri" <sherip99@> wrote: > > > > Like PCRE_NOTEMPTY, PCRE_NOTEMPTY_ATSTART is an exec option only. > > Okay, fixed in > > regexPlugin209_091022.zip in > http://tech.groups.yahoo.com/group/power-pro/sfupld?path=/0_TEMP_/AlansPluginProvisional/ > > > I tried using "notempty_atstart" with the test version posted, > > and got a plugin error stating the option is incomprehensible. > > Did you use a different spelling or would the message get > > generated just because the option got wrongly identified as a > > compile option? > > Dunno. Seems to buy it now. > > > Have you looked into incorporating use of PCRE_NOTEMPTY_ATSTART > > during processing of multiple matches yet? > > I hadn't, but have now. > > I compared pcredemo.c for 8.0 vs 7.8 > > Only difference is the one line > > options = PCRE_NOTEMPTY_ATSTART | PCRE_ANCHORED; > vs > options = PCRE_NOTEMPTY | PCRE_ANCHORED; > > I have a similar line in my code. So I changed it. (I remember > that block of code. Shudder.) So it now uses > PCRE_NOTEMPTY_ATSTART instead of PCRE_NOTEMPTY, logic remains as > is was.
Works fine, but causes plugin version 2.09 to be incompatible with earlier releases of PCRE. Perhaps during initialization, the plugin should refuse to load if the PCRE library version is less than 8.00. Alternatively, you could set some variable during initialization (equal to either PCRE_NOTEMPTY or PCRE_NOTEMPTY_ATSTART) and use that in the "options = " line above. > Out of general interest, would a user ever want to specify > "notempty_atstart"? Seems to me only useful in above situation. Doubtful except possibly in a scripted multiple matcher (e.g. using regex.pcrematch in a loop). Don't know if related to recent changes to the regex plugin, but I've seen the following inexplicable message a few times today. I wasn't testing scripts or anything at the time. --------------------------- PowerPro --------------------------- Invalid use of period: cannot load plugin, invalid handle value, or invalid function: --------------------------- OK --------------------------- Regards, Sheri
