[video=youtube;UM9aPy7H534]https://www.youtube.com/watch?v=UM9aPy7H534[/video]
[media=youtube]UM9aPy7H534[/media]
[video
#\[video=youtube;([^"]+)">.+\]https://www\.youtube\.com/watch\?v="([^"]+)">([^<]+)\[video\]#siU
[media=youtube]\1[/media]
Your expression is a bit off for this task so the app is showing the correct results by not listing or replacing anything (always test your expressions without save changes checked and peruse the list before checking to make sure you aren't erasing large swathes of text because of a bad expression that gets too greedy).I'm trying to replace
Code:[video=youtube;UM9aPy7H534]https://www.youtube.com/watch?v=UM9aPy7H534[/video]
with this
Code:[media=youtube]UM9aPy7H534[/media]
Using Quick Find -Code:[video
Regular Expression -Code:#\[video=youtube;([^"]+)">.+\]https://www\.youtube\.com/watch\?v="([^"]+)">([^<]+)\[video\]#siU
Replacement String -Code:[media=youtube]\1[/media]
When I click the proceed button, the page reloads but nothing happens - doesn't give a list or replace the text.
Am I doing something wrong?.
[video
#\[video=youtube;([a-z0-9_-]{11})][^\[]+\[/video]#siu
[media=youtube]\1[/media]
hello world
# hello world #su
Hello World
Hi.
I am trying to use this plugin on my forum that I've recently migrated from vBulletin 4.
I've installed the plugin via admin control panel, and uploaded the PostReplace-folder to root/library as instructed.
I'm looking to replace my [mention=USERID]USER[/mention], and have used the following settings:
Quickfind: [mention
Regex: #\[mention=([^\]]+)\]([^\[]+)\[/mention\]#siU
Replacement: @\2
However, when I click "Continue", I only get a completely blank screen (url:/admin.php?post-replace/replace).
Does anyone know what the problem might be?
I'm running XF 1.4.6
<a href="http://site.com/wp-content/uploads/img-700x625.jpg"><img class="alignnone size-large wp-image-7587" src="http://site.com/wp-content/uploads/img-700x625.jpg" alt="Cars review" width="700" height="625" /></a></p>
[IMG]http://site.com/wp-content/uploads/img-700x625.jpg[/IMG]
[DOUBLEPOST=1421280062][/DOUBLEPOST]
Works great.Rather than ping the addon author, you should link to the addon if anything.
it looks like it uses timestamps soCode:doublepost
Code:#\[(doublepost)=[0-9]{10}]\[/\1]#siu
[URL='http://[media=youtube]DexDu4FDEWM[/media]'][video=youtube_share;DexDu4FDE...player_embedded]http://www.youtube.com/watch?v=DexDu4FDE...player_embedded[/video][/URL]
If you can edit posts (or otherwise create another) would you add a couple more examples of those erroneous strings (preferably as unique as possible) so that I can see if a true pattern can be derived. It's a big enough pattern (with plenty of spots that I can imagine uniqueness in) where I need to run a test on it before posting an answer.I've done some conversions for youtube videos, and some of the links have turned out to be inside in the URL BB code
Code:[URL='http://[media=youtube]DexDu4FDEWM[/media]'][video=youtube_share;DexDu4FDE...player_embedded]http://www.youtube.com/watch?v=DexDu4FDE...player_embedded[/video][/URL]
How would I go about matching those to remove everything apart from the new media=youtube section?
Thanks
hehe. did just that. funny thing happening now. if i load a post with the ibf link, the post itself shows the ibf link. but if i edit the post, it shows the j.mp link. i am guessing i need to clear some cache or something?
DELETE FROM xf_bb_code_parse_cache;
We use essential cookies to make this site work, and optional cookies to enhance your experience.