failing regex options

Q&A's, tips, howto's
Post Reply
ralph.ronnquist
Posts: 216
Joined: Mon Jun 02, 2014 1:40 am
Location: Melbourne, Australia

failing regex options

Post by ralph.ronnquist »

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"

Lutz
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: failing regex options

Post by Lutz »

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)

Post Reply