Resource icon

Post Content Find / Replace 1.0.0

No permission to download
Quick Find:
Code:
amazon]

Regular expression:
Code:
#(?:\[media=(amazon)])([^\[]+)(?:\[/media])#siu

Replacement String:
Code:
http://www.\1.de/dp/\2/?tag=AMAZON-ID

OMG, I forget the string to make it clickable :cautious:

Now, I have this code
Code:
http://www.amazon.de/dp/B00EIDO5K6/?tag=AMAZON-ID

and need this
Code:
[URL]http://www.amazon.de/dp/B00EIDO5K6/?tag=AMAZON-ID[/URL]
 
OMG, I forget the string to make it clickable :cautious:

Now, I have this code
Code:
http://www.amazon.de/dp/B00EIDO5K6/?tag=AMAZON-ID

and need this
Code:
[URL]http://www.amazon.de/dp/B00EIDO5K6/?tag=AMAZON-ID[/URL]


Quick Find:
Code:
amazon

Regular expression:
Code:
#http://www\.amazon\.de/dp/[^/]+/\?tag=AMAZON-ID#siu

Replacement String:
Code:
[URL]\0[/URL]
 
Last edited:
I need some help with old (imported vb4) BBCodes in the posts.
There are many posts including the following bbcodes:

Code:
[SIZE=1]
[SIZE=2]
[/SIZE]
[FONT=tahoma] etc.


I want to remove these BBCodes from all posts. Is this possible?

Thanks in advance :)
 
I need some help with old (imported vb4) BBCodes in the posts.
There are many posts including the following bbcodes:

Code:
[SIZE=1]
[SIZE=2]
[/SIZE]
[FONT=tahoma] etc.


I want to remove these BBCodes from all posts. Is this possible?

Thanks in advance :)

For FONT BBCODE REMOVE

Quick Find: [font

Regular Expression: #\[font=([^\]]+)\](.*)\[/font\]#siU

Replacement String: \2


For SIZE BBCODE REMOVE

Quick Find: [size

Regular Expression: #\[size=([^\]]+)\](.*)\[/size\]#siU

Replacement String: \2
 
Just installed 1.3 and clicking on the add-on returns
Error
The requested page could not be found.

I am guessing it's not installed correctly.

This directory should exist on the server:

library/PostReplace

And inside should be this:

library/PostReplace/addon_PostReplace.xml

That XML file needs to be imported in the Admin CP:

Admin CP -> Home -> Install Add-on
 
hmm, good question,

maybe remove them as I'm trying to make my site more mobile friendly but if you don't mind, both ways would be appreciated. Thank you.
 
How would I go about finding any references to the following:

Code:
thisurl.com

Code:
thisurl.com/folder/

Code:
jake's stuff

I don't actually want to replace anything, I just want to locate them.
 
I have some code snipets in my forum like this: [MEDIA=amazon]0123456789[/MEDIA].

I'd like to find them all and replace with this code: [AMAZON]0123456789[/AMAZON].

Can anyone help how to handle this?
 
How would I go about finding any references to the following:
Code:
thisurl.com
thisurl.com/folder/
jake's stuff
I don't actually want to replace anything, I just want to locate them.


Code:
thisurl.com
thisurl.com/folder/

Quick Find:
Code:
thisurl

Regular expression:
Code:
#thisurl\.com(?:/folder/)?#siu

_____________________________________


Code:
jake's stuff
Quick Find:
Code:
jake's

Regular expression:
Code:
#jake's\sstuff#siu









I'd like to find [MEDIA=amazon]0123456789[/MEDIA]
replace with [AMAZON]0123456789[/AMAZON].
Can anyone help how to handle this?




Quick Find:
Code:
amazon

Regular expression:
Code:
#\[MEDIA=(amazon)]([a-z0-9]+)\[/MEDIA]#siu

Replacement String:
Code:
[\1]\2[/\1]
 
Last edited:
Thank you @EQnoble but this seems not to work.

The replacement text will look like this:
[URL][media=amazon]3406570739[/media][/URL]

but I need
[amazon]3406570739[/amazon]
 
Thank you @EQnoble but this seems not to work.

The replacement text will look like this:
[URL][media=amazon]3406570739[/media][/URL]

but I need
[amazon]3406570739[/amazon]
I'm sorry, I am rushing over here because they are shutting my power off within the hour and I don't know exactly when...I copy/pasted from one of my posts above so I could fill in the blanks and forgot to change replacement line.


I have edited it above...sorry about that. ( Gotta love having that option to not apply the changes :) )
 
Top Bottom