int option of regexp

For the Compleat Fan
Locked
ssqq
Posts: 88
Joined: Sun May 04, 2014 12:49 pm

int option of regexp

Post 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))

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Re: int option of regexp

Post 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."

ssqq
Posts: 88
Joined: Sun May 04, 2014 12:49 pm

Re: int option of regexp

Post by ssqq »

Thanks cormullion nice reply.

Locked