Quick Find:
Code:ame
Regular expression:
Code:#\[ame="http://(?:www.)?(youtube)[^=]+=([^"]+)"][a-z0-9\s-\[\]()]+\[/ame]#siu
Replacement String:
Code:[media=\1]\2[/media]
[video width=400 height=350]http://www.youtube.com/v/4fMY9GE6AIQ[/video]
[MEDIA=youtube]4fMY9GE6AIQ[/MEDIA]
I need help replacing with this
Code:[video width=400 height=350]http://www.youtube.com/v/4fMY9GE6AIQ[/video]
to this
Code:[MEDIA=youtube]4fMY9GE6AIQ[/MEDIA]
Thanks.
#\[video width\=400 height\=350\]http://www.youtube.com/v/(.+)\[/video\]#siU
[MEDIA=youtube]\1[/MEDIA]
View attachment 73032
RegEx:Replacement:Code:#\[video width\=400 height\=350\]http://www.youtube.com/v/(.+)\[/video\]#siU
Code:[MEDIA=youtube]\1[/MEDIA]
Yes, when i search it shows correctly when i run it. It shows the error.Can you show a screen shot please? I tested it exactly as above, and it replaced the post
View attachment 73038
@Arun Kumar
@MattW
The error usually means the resulting post is empty which is not allowed. But your replacement is not "empty". In looking at the code, this could also be the result of invalid BB code being stripped away at render time. It's probably the ampersand in your video id that is getting matched. Your regex needs to be tightened. Replace the (.+) with ([a-zA-Z0-9_\-]+)
The bottom of the screenshot shows a post with multiple matches. The UI for this addon puts the post link into a cell with a rowspan > 1 when there are multiple matches. It's not missing, it's just outside of the screenshot.
Posting this again as i hope someone can make a suggestion
I have 45,000 and i would love to replacement with a space when i try it with the expression #\ # i get the following error:
Error
Please enter a valid message.
I there a way I can clean these up using the PCF tool?
I also tried \2 as the expression but still the same error.
UPDATE xf_post
SET message = REPLACE(message, ' ', ' ')
[video=youtube;KiMbVAW2-CM]http://www.youtube.com/watch?v=KiMbVAW2-CM[/video]
[MEDIA=youtube]\1[/MEDIA]
This addon is difficult for me to use
I want replace
[IMG']http://domain.com/media/albums/blend-photoshop.87/standalone?embedded=1[/IMG']
->>>>>>>>>> [photo="large"]87[/photo]
Can you help me??
Hello,
I just migrated from VB4.2.1 to XF1.31. and I tried this addon to edit the youtube problem.
The youtube on my VB was for example:
Code:[video=youtube;KiMbVAW2-CM]http://www.youtube.com/watch?v=KiMbVAW2-CM[/video]
I used the addon with the following information:
Quick find: [video
Regular expression: #\[video=youtube;([^\]]+)\]([^\[]+)\[/video\]#siU
Replacemente string:Code:[MEDIA=youtube]\1[/MEDIA]
Yes, this are the same information presented in the addon page. I have no idea what they mean, so I used them as is. I'm not an IT guy.
After using the addon it founds 7,935 videos that need to be changed.
However, when I checked the Save changes box, I get the error message: Please enter a valid message.
Any suggestion?
Thanks!
Thanks for your reply.But, it seems it does not work.Quick Find: [img]http://domain.com/media/albums
Regular Expression: #\[img\]http://domain.com/media/albums/[^\.\[]+\.([0-9]+)\[/img\]#siU
Replacement String: [photo="large"]\1[/photo]
We use essential cookies to make this site work, and optional cookies to enhance your experience.