Oh, bad, bad, typo... I will change it.This should be youtu
Just pu it in the regextester.com and look whats wrong. I try it again with the test-strings from above and step 3 works for me.Something is wrong with step 3. It is returning results with one letter like this:
Things you should control (with regestester.com)
- do you use the right one replacement? The number after the $ changed in my replacement strings - take a look at that
- if that is realy OK, put my step 3 regex code (without # at the begining and #siU at the end !!) in the https://regextester.com,
Cklick at "flags" right above the regex input field and control, multiline and global are selected.
put these test-strings in the test string text field:
https://www.youtube.com/watch?v=xxxxxxxxxxx[url]https://www.youtube.com/watch?v=xxxxxxxxxxx[/url] [URL]https://www.youtube.com/watch?v=xxxxxxxxxxx[/URL] https://youtu.be/xxxxxxxxxxx [url]https://youtu.be/xxxxxxxxxxx[/url] [URL]https://youtu.be/xxxxxxxxxxx[/URL] https://www.youtube.com/watch?v=xxxxxxxxxxx
When you now mouse over the test-strings, a overlay should open with more info like this:
As you can see then, we need group #3 (the video IDs)
and use these replace string in subtitition field:
The $3 means that at this place comes that what our matchesfound at group #3 short bevore.
then you also should become such a example replacements:
xxxxx stands symbolic fore your video-ID
If so - the regex work, go back to the find posting and replace tool at your Xenforo und try a new test run. Dont forgett to add now the # at beginning and the #siU at the end of the regex when you copy it to Xenforo.
If not - make certain screenshots out of your regextester.com so I can see the overlay open and all other input fields.