Resource icon

Post Content Find / Replace 1.0.0

No permission to download
The normal Youtube-Videos converted good but I don't know how to do it with youtube-videos using "youtu.be" as url

Code:
[video=youtube_share;JmhDIaHsGH0]http://youtu.be/JmhDIaHsGH0[/video]
 
Doesn't work for me :(
I'd like to find [amazon] and replace with
I did for the opening tag:

Quick Find: [amazon]
Regular Expression: #\[amazon\=[a-z]+\]#siu
Replacement string:
 
Doesn't work for me :(
I'd like to find [amazon] and replace with
I did for the opening tag:

Quick Find: [amazon]
Regular Expression: #\[amazon\=[a-z]+\]#siu
Replacement string:

Can you provide an example of the complete amazon code in a post?
 
So far, all the tips here have helped me fix my youtube/ame problems. But the Vimeo code has trounced me. Can someone (Jake? EQnoble?) kindly provide the triple field requirements for an entry like this:

Code:
[video=vimeo;58646255]https://vimeo.com/58646255[/video]

Thanks.
 
So far, all the tips here have helped me fix my youtube/ame problems. But the Vimeo code has trounced me. Can someone (Jake? EQnoble?) kindly provide the triple field requirements for an entry like this:

Code:
[video=vimeo;58646255]https://vimeo.com/58646255[/video]

Thanks.
Code:
Quick Find:            [video=vimeo
Regular expression:    #\[video\=vimeo;([0-9]+)\].+\[\/video\]#siU
Replacement String:    [media=vimeo]\1[/media]
 
So you want that be replaced by 1234567890 only?

The asin should be the same. But [ amazon]-tag shall be changed to [ media=amazon] and [/ amazon] shall be changed to [/ media]

result shall be [ media=amazon]1234567890[ /media]
 
Are you using the amazon bbcode I made or are you using a custom one. ( I just came across your post where you wanted a custom one) This matters for the formatting of the change.
 
The asin should be the same. But [ amazon]-tag shall be changed to [ media=amazon] and [/ amazon] shall be changed to [/ media]

result shall be [ media=amazon]1234567890[ /media]

Are you using the amazon bbcode I made or are you using a custom one. ( I just came across your post where you wanted a custom one) This matters for the formatting of the change.


Also you said ...
@Jake Bunce
e.g. [amazon]1234567890[/amazon]
Sometimes there are also letters mixed with numbers. It's just amazon's ASIN imside the tags.

Are you saying that there are ASIN ID's with letters (I have never seen that)?

Or are you talking about this stuff after the ASIN in a link... /ref=dp_olp_new/176-2953314-1967504?ie=UTF8&condition=new

If the second does the bbcode you are using require that stuff to be there?
 
@EQnoble
No it currently has nothing to do with the bbcode you've done.

I'm still running a vB4 Forum and have some sorts of the mentioned bbcodes in many Posts. Currently I'm playing bit around and now I simply ask how I can use @Kier's tool to find [ amazon] and replace it with [ media=amazon] and how to find [ /amazon] and replace it with [ /media]. Not more not less.

I'm doing this in a xenForo test installation where I have imported my vB4.
 
well here is the thing, I would not capture the pieces individually, I would be capturing the tags and the content in between with one expression and then literally swapping the tags...

I need to know what will be in the tags to do that. If you don't want to tell me that the best I can do is offer you this...

Code:
Quick Find:            [amazon]
Regular expression:    #\[amazon\]([0-9]+)(\/.+)?\[\/amazon\]#siu
Replacement String:    [ media=amazon]\1[ /media]

// if you want to include the crap after the ASIN use this below for the Replacement String instead. 
[media=amazon]\1\2[ /media]
 
In the tags are ten digit numbers, sometimes mixed with letters

e.g. 3442478669 // [ amazon]3442478669[ /amazon]

or B00APVVZBM // [ amazon]B00APVVZBM[ /amazon]

or B00AN0MCG2 // [ amazon]B00AN0MCG2[ /amazon]
 
In the tags are ten digit numbers, sometimes mixed with letters

e.g. 3442478669 // [ amazon]3442478669[ /amazon]

or B00APVVZBM // [ amazon]B00APVVZBM[ /amazon]

or B00AN0MCG2 // [ amazon]B00AN0MCG2[ /amazon]

Code:
Quick Find:            [amazon]
Regular expression:    #\[amazon\]([a-z0-9]+)\[\/amazon\]#siu
Replacement String:    [ media=amazon]\1[ /media]
 
Back
Top Bottom