int option of regexp

Started by ssqq, May 14, 2014, 12:01:31 AM

Previous topic - Next topic

ssqq

As the manual said:


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?


Quote# Perl style

qr/a b .*? d/xms


If it should like:


(regex "^a b+ c .*? d$" "abbcnr123d" (+ 2 4 8))

cormullion

#1
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

#2
Thanks cormullion nice reply.