XF 2.0 Template Modification Regex to match between tags

nrep

Well-known member
I'm struggling to get a regex expression that will match content between the <footer tags, so that I can replace all of the footer with my own customised version via a template modification.

I thought that using something like #<footer(.*)</footer>#i would match all of the footer content, but it doesn't match anything. I suspect it's something to do with being across multiple lines, but adding the multiline switch doesn't work either.

Has anyone got any advice on how to match this correctly?
 
Ah, looks like it's the s switch I need to add.

#<footer(.*)</footer>#is

This now works :). Hope it helps someone else!
 
Top Bottom