Resource icon

Post Content Find / Replace 1.0.0

No permission to download
It's safe enough as long as the match string isn't ambiguous.

You would use this, for example: [QUOTE="Brogan which would only match quoted content by me.

As always, back up the database/table before making any changes.
 
It's safe enough as long as the match string isn't ambiguous.

You would use this, for example: [QUOTE="Brogan which would only match quoted content by me.

As always, back up the database/table before making any changes.
So would it be like this?

Quick find: Username
Regular expressions: [QUOTE="Username
Replacement string: Username

I'm going to be using the 2.1 version.
 
I was responding to @OperaManiac regarding the simple SQL query option.

This add-on requires using regex - there are many examples in the thread how to create the find and replace strings.
 
More like
Code:
#(http(?:s)?:\/\/)(ostertagdeteweforum\.de\/)((?:[^\[]+)?)#siu

replace
Code:
https://kms.\2\3

Test this with regex101.com to fine tune this
 
I have found that my sites post table has many tags URLs that are incorrect. The trailing slash is missing. i.e.
mysite.com/tags/my-tag
which should be:
mysite.com/tags/my-tag/

What RegEx can I use to add the trailing slash to those links that miss this?

Second question:
Some tags still have old vbulletin syntax with a plus sign between words. i.e.
mysite.com/tags/my+tag/
which should be:
mysite.com/tags/my-tag/

What RegEx can I use to change the plus sign to a minus?
 
How can I replace the following urls from:
/threads/627311/#postcount=43
to:
/threads/627311/

And from:
/threads/105576/#highlight=bla
to:
/threads/105576/

Can someone please offer advice?
 
Last edited:
Not quite... instead of a line break I get text "\n" inserted in posts.

Same here - converted from VB and gobs of messages displaying <br>.
If I edit the post and manually replace the br with "\n" (no quotes) and then save it, it now shows text "\n"
I did not try in the app, just a manual edit. Gotta get rid of the br's Anyone?
 
Hello,

I'm very bad in regex and hope, someone will help me:

I like to replace

PFX

with

<span style="font-weight:bold"><span style="color:#a50220">P</span><span style="color:#036d2d">ortugal</span><span style="color:#a50220">F</span><span style="color:#036d2d">orum</span></span>

Is this possible? Works it also in signatures?

Thx

Kai
 
Top Bottom