Jump to content

Regex


johnnyk

Recommended Posts

It won't match that because of the negated characters. Something like this:

[code]/<OL><LI>(.*?)<\/LI>/s[/code]

Would make more sense. For case insensitive matching, use the PCRE_CASELESS modifier (i). For single line only, remove the PCRE_DOTALL modifier (s).

[code]/<OL><LI>(.*?)<\/LI>/i[/code]
Link to comment
https://forums.phpfreaks.com/topic/11936-regex/#findComment-45300
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.