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
Has anyone got any advice on how to match this correctly?
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?