failing regex options

Q&A's, tips, howto's

failing regex options

Postby ralph.ronnquist » Sun Aug 09, 2015 9:10 am

This problem got lost in the other thread. Namely that regex does not accept option flags 128, 256 or 1024.
Code: Select all
> (regex "x" "xxx" 128)

ERR: regular expression in function regex : "offset 0 unknown option bit(s) set"
> (regex "x" "xxx" 256)

ERR: regular expression in function regex : "offset 0 unknown option bit(s) set"
> (regex "x" "xxx" 1024)

ERR: regular expression in function regex : "offset 0 unknown option bit(s) set"
ralph.ronnquist
 
Posts: 209
Joined: Mon Jun 02, 2014 1:40 am
Location: Melbourne, Australia

Re: failing regex options

Postby Lutz » Sun Aug 09, 2015 2:35 pm

The options PCRE_NOTBOL 128, PCRE_NOTEOL 256 and PCRE_NOTEMPTY 1024 now work:

http://www.newlisp.org/downloads/develo ... nprogress/

Ps: updated again: 2015-08-09 16:32

Ps: see also post in newS section of forum about the significance of the PCRE_UTF8 option (--> Ted Walther)
Lutz
 
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 1 guest

cron