XF 2.2 REGEX for template modifications

Nicolas FR

Well-known member
In order to make template modifications more secure or universal I guess REGEXes are more suitable than simple replacements which can be disturbed by other modifications from different addons. Am I right ?

Unfortunately I totally discover this syntax and am quite unable to use it for example in 2 concrete cases that I currently encounter.

In PAGE_CONTAINER template i want to add code before this part
        <div class="p-footer-row">
            <xf:if contentcheck="true">
                <div class="p-footer-row-main">
                    <ul class="p-footer-linkList">
And add code after this part
                <xf:copyright />
                {{ phrase('extra_copyright') }}

What REGEX replacement could I use?
Thanks for your help on this.