Page 1 of 1

int option of regexp

Posted: Wed May 14, 2014 7:01 am
by ssqq
As the manual said:

Code: Select all

 i for PCRE_CASELESS
m for PCRE_MULTILINE
s for PCRE_DOTALL
x for PCRE_EXTENDED
If I want use all this option together, How to write code?
# Perl style
qr/a b .*? d/xms
If it should like:

Code: Select all

(regex "^a b+ c .*? d$" "abbc\n\r123d" (+ 2 4 8))

Re: int option of regexp

Posted: Wed May 14, 2014 7:36 am
by cormullion
Also in the manual:

"Several options can be combined using a binary or | (pipe) operator. E.g. (| 1 4) would combine options 1 and 4."

Re: int option of regexp

Posted: Fri May 16, 2014 5:20 am
by ssqq
Thanks cormullion nice reply.