Posted 14 June 2006 - 12:16 AM
<OL><LI><OL TYPE="a"><LI TYPE="a">text.</LI>
Wouldn't . include <OL TYPE="a"><LI TYPE="a">
Also, if I wanted to make it single line and case insensitive, what would I do? Would it just be /regex/si?
Posted 14 June 2006 - 12:32 AM
Would make more sense. For case insensitive matching, use the PCRE_CASELESS modifier (i). For single line only, remove the PCRE_DOTALL modifier (s).
Posted 14 June 2006 - 01:09 AM
And what if I wanted it to not stop at \n (/regex/s) AND be case insensitive (/regex/i)? How would I combine them?
Posted 14 June 2006 - 01:24 AM
Simply use /pattern/si
It doesn't matter the order (so it could be /pattern/is); everything outside the delimiter is considered a pattern modifier.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users