Ferdinand
Well-known member
The first error is because you have more replacements to make than your servers memory can handle in one shot. You can either increase your memory (which may not help you at all depending how many replacement you need to make per expression), or you can follow Jake's mod for this addon which will add a batch processor type of function so that it won't try to do more than it can per run.
The second error is because you are not using an ending delimiter, when dealing with regex think of a delimiter as a border marker to tell your server to either start treating the following as regex or to tell it to stop interpreting it at regex. Even when you follow a plain text match in regex you still need delimiters for your server to know to treat a string as regex, like you might want to match the word hungry and though it seems pointless you really need to wrap it with delimiters like this #hungry# (I use # for delimiters but there are others that can be used) For that try fixing your expression so that it is wrapped on both sides with #.
As far as your actual needed expression goes...when requesting help in this thread the best way to go about it is to open an example post at your forum, click edit, then click use bbcode editor (icon that looks like a wrench over a piece of paper). What you see when editing with the bbcode editor is what I actually need to see in order to make someone a proper expression for their board.
Thank you,
Parts of the BB code is variable but I will give you an example of what I'm trying to change with the variable included. I've got:
Code:
[URL='http://artsuk.org/community/attachments/mfl_spanish_overview1-12-pdf.66611/']
Code:
[URL='http://www.tag.ac/attachments/mfl_spanish_overview1-12-pdf.66611/']
There are various attachments throughout the site with the same problem as we changed domain & moved the XF install to our root directory. Unfortunately, I'm not sure how to vary the regex to isolate and change the code before the '/attachments' section as I've never written using it & I cannot figure it out from the advice I have seen online.
Perhaps after I have done one I can tweek it, I am hoping there is a way to express wild card endings like www.artsuk.org/* similar to what you can do in URL redirects.