@Kier any plans to make this super popular add-on available for XF 2.x as well in the form of an add-on or built-in feature? If yes, please consider supporting batch mode because it fails to work if the number of matched items is large.
We will be re-writing it for XF2 though it will be a bit further down the line. It will probably coincide with whichever release will support importing from external software.
To be clear, do all these posts have this code inside code bbcode blocks?
My regex (if it works) should find any code block containing "var SymRealOnLoad;" and you can set it to "". You don't need to create a regex with the entire chunk of code in it. I assume there are no other code block with that string inside.
mhm. I keep getting time outs as there are 13k results. So I will need to split it up. Attached are the font codes I have.
With the previous replacement I got the error that I needed to fill in a replacement text. But I just want to remove it. Is there anything I can fill in the replacement field to avoid that?
Yes, easily. Last post ID is upward of 1.9 million. And my members love to fiddle around. Especially female members with pink text in pretty fonts.
These ones goes wrong:
/\[font="[^\]]+?\]/i
/\[font=[a-f]{1}[^\]]+?\]/i Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 11038520 bytes)
I was able to do a full search on this one, but not save it:
/\[font=[^\]]+?\]/i
So I am not sure why the full search would work better than the partial search. 250MB should be more than enough.
The more specific searches are more complicated and require more resources. It still has to go through every post to check and checking each one takes more. It's one thing to get a regex to work, another to get it to work efficiently, and on that last matter I'm not of much help. Too bad the product isn't designed to do things in batches.
I'm sure there are better regex people than I, if only you could get them interested in this problem.
You could try going through each letter of the alphabet with or without the initial quote. It might be a simpler search
mhm. I keep getting time outs as there are 13k results. So I will need to split it up. Attached are the font codes I have.
With the previous replacement I got the error that I needed to fill in a replacement text. But I just want to remove it. Is there anything I can fill in the replacement field to avoid that?
In some cases sure but not all. Jake Bunce posted a fix for this a long time ago which allows you to batch things without accounting for more unique signatures with your regex.