So to be clear - I should NOT run this â€The problem with that is while it would catch †, it would also match strings that start with that and mess them up.
‘
’
–
“
â€
The only easy way to replace †is to replace all other strings containing †first or you will end up with all sorts of weirdness.
Example:
“ -should be- “ but running the replacement for †anything but last would leave you with this ”œ making many steps needed to fix this.
to be honest in this case I am not comfortable just giving you instructions because you can really mess up your post table if you do anything out of order or incorrectly,it wont completely ruin your posts but it will make it 50 times harder to replace everything and at the very least take a lot of time.
If this addon supported using a callback processor I could write a script to handle this with one shot but with regex alone it is very involved and probably not suitable for someone who doesn't already understand it and I don't want to be responsible if your posts get fubar'd and I don't have the time at the moment to do anything that will take a lot time researching.
No you should not run this until all other instances of things that start with †are converted first...(like – ’ ‘ “) because it will change those and different replacements will be needed and it will be an even bigger mess.So to be clear - I should NOT run this â€
So can I run these then safely – ’ ‘ “ without issue? I'll take as much repairing as I can get.No you should not run this until all other instances of things that start with †are converted first...(like – ’ ‘ “) because it will change those and different replacements will be needed and it will be an even bigger mess.
You need to find each instance of strings starting with †first(like these – ’ ‘ “), then once they are replaced you can safely replace (â€).
The problem is you need to know every single improperly encoded string before you start replacing...you can't just find one and replace it and that is not something I can help you with just by asking you to look because if you miss one it could effect everything after that if you replace the last one before catching one you missed.
Try this
Quick Find:
Code:youtube
Regular expression:
Code:#http://(?:www\.)?youtube\.com\/watch\?v=([a-zA-Z0-9_-]{11})(?:[^\s]+)?#siu
Replacement String:
Code:[media=youtube]\1[/media]
[media=youtube]lKudwSJWocs[/media]
Can you hit 'edit' on a post containing one of those tags and then click 'use bbcode editor' then copy the contents of the editor window and paste that in between [code][/code] tags here.Hi, I have moved one big forum to xenforo but, there are larger amount of HTML content tags, like iframe, embedded etc. that can not work OK.
Now my plan is to use this addon: Post Message Regex Replacer and this ParseHTML to wrap for example all iframe tags into tag of ParseHTML, and at end this should allow for iframe to work.
My question is what I need to use in Regular expression to wrap <iframe> code </iframe> to end up like this [parsehtml] <iframe> code </iframe> [parsehtml]
Thank you for any help
[BBvideo 425,350]http://www.youtube.com/watch?v=7addhPljRiM[/BBvideo]
[media=youtube]xxxxxxxxxxxx[/media]
My source code look likes -->
Code:[BBvideo 425,350]http://www.youtube.com/watch?v=7addhPljRiM[/BBvideo]
What can I do to change it to
Code:[media=youtube]xxxxxxxxxxxx[/media]
[BB
#(?:\[bbvideo\s[0-9]+,[0-9]+])http(?:s)?://(?:www\.)?(?:[a-z0-9-]+\.)?youtu(?:be\.com/(?:[a-z]+(?:/api/videos/)?)|\.be)(?:\?v=|/)?([a-z0-9_-]{11})(?:[^\s]+)?#siu
[media=youtube]\1[/media]
[BBvideo 425,350]http://www.youtube.com/watch?v=7addhPljRiM[/BBvideo]
[BBvideo 425,350:st5fv12m]http://www.youtube.com/watch?v=7addhPljRiM[/BBvideo]
[BBvideo 425,350:bcdefhgh]http://www.youtube.com/watch?v=7addhPljRiM[/BBvideo]
[BBvideo 425,350:utukhjsl]http://www.youtube.com/watch?v=7addhPljRiM[/BBvideo]
After an import to XF it look likes
Code:[BBvideo 425,350:st5fv12m]http://www.youtube.com/watch?v=7addhPljRiM[/BBvideo]
[BB
#(?:\[bbvideo\s[0-9]+,[0-9]+[^]]+])http(?:s)?://(?:www\.)?(?:[a-z0-9-]+\.)?youtu(?:be\.com/(?:[a-z]+(?:/api/videos/)?)|\.be)(?:\?v=|/)?([a-z0-9_-]{11})(?:[^\s]+)?(?:\[/bbvideo])#siu
[media=youtube]\1[/media]
[img]{vb:stylevar imgdir_misc}/users_online.png[/img]
[user]Adam[/user]
I can do this with ease but...for the replacement to be correct I would need to know the directory info behind (imgdir_misc)I've got an interesting one for you...
PHP:[img]{vb:stylevar imgdir_misc}/users_online.png[/img]
We use essential cookies to make this site work, and optional cookies to enhance your experience.