XenForo though will auto clear whitespace on Replacement Filed :/.What when you use simply a " " (whitespace) instead \n or \t ? I think \s like at the regex code will not work at replacement string - but I havent tested yet.
XenForo though will auto clear whitespace on Replacement Filed :/.What when you use simply a " " (whitespace) instead \n or \t ? I think \s like at the regex code will not work at replacement string - but I havent tested yet.
#(\s)([\[CQ\=']+)([\w\-\s]+)([c:\s0-9,m'\]\[\/CQ\]]+)(\s)#si
$1@$3$5
What did you use for the short one?Hi there.
I want to replace
withCode:https://www.youtube.com/watch?v=12345678
Code:[media=youtube]\1[/media]
What do I have to search for, I mean, what do I have to type in?
Almost forgot: There are also a few
Code:https://youtu.be/12345678
that need to be changed.
https://youtu.be/123456789
https://youtu.be/
#( )(https:\/\/youtu\.be\/)([a-zA-Z0-9-_?%&]+)( )#siu
$1[MEDIA=youtube]$3[/MEDIA]$4
[URL='http://filedata/fetch?id=2151&d=1612502132'][ATTACH type="full" width="30%" alt="Click for bigger size. Name: DJ824_0.jpg Views: 0 Size: 195.1 Kb"]1319[/ATTACH][/URL]
More examples of counting
[URL='http://filedata/fetch?id=2155&d=1612502244']
[URL='http://filedata/fetch?id=2149&d=1612502164']
[URL='http://filedata/fetch?id=2150&d=1612502223']
[URL='http://filedata/fetch?id=2148&d=1612502159']
[URL='http://filedata/fetch?id=2153&d=1612502153']
[URL='http://filedata/fetch?id=2154&d=1612502289']
[URL='http://filedata/fetch?id=2152&d=1612502141']
[URL='http://filedata/fetch?id=2152&d=1612502141'] [/URL]
[ATTACH type="full" width="30%" alt="Click for bigger size. Name: DJ824_0.jpg Views: 0 Size: 195.1 Kb"]1319[/ATTACH]
[ATTACH type="full" width="30%" alt="Click for bigger size. Name: DJ824_0.jpg Views: 0 Size: 195.1 Kb"]1319[/ATTACH]
[URL='http://filedata/fetch?id=2151&d=1612502132'][ATTACH type="full" width="30%" alt="Click for bigger size. Name: DJ824_0.jpg Views: 0 Size: 195.1 Kb"]1319[/ATTACH][/URL]
More examples of counting
[URL='http://filedata/fetch?id=2155&d=1612502244']
[URL='http://filedata/fetch?id=2149&d=1612502164']
[URL='http://filedata/fetch?id=2150&d=1612502223']
[URL='http://filedata/fetch?id=2148&d=1612502159']
[URL='http://filedata/fetch?id=2153&d=1612502153']
[URL='http://filedata/fetch?id=2154&d=1612502289']
[URL='http://filedata/fetch?id=2152&d=1612502141']
[URL='http://filedata/fetch?id=2152&d=1612502141'] [/URL]
[ATTACH type="full" width="30%" alt="Click for bigger size. Name: DJ824_0.jpg Views: 0 Size: 195.1 Kb"]1319[/ATTACH]
Sorry I thought I was explaining things wellwe need a old string and in best case a new one
[URL='http://filedata/fetch?id=2151&d=1612502132'][ATTACH type="full" width="30%" alt="Click for bigger size. Name: DJ824_0.jpg Views: 0 Size: 195.1 Kb"]1319[/ATTACH][/URL]
[ATTACH type="full" width="30%" alt="Click for bigger size. Name: DJ824_0.jpg Views: 0 Size: 195.1 Kb"]1319[/ATTACH]
Sorry I thought I was explaining things well
OLD STRING
Code:[URL='http://filedata/fetch?id=2151&d=1612502132'][ATTACH type="full" width="30%" alt="Click for bigger size. Name: DJ824_0.jpg Views: 0 Size: 195.1 Kb"]1319[/ATTACH][/URL]
NEW STRING
Code:[ATTACH type="full" width="30%" alt="Click for bigger size. Name: DJ824_0.jpg Views: 0 Size: 195.1 Kb"]1319[/ATTACH]
Due to the number of strings and variations, I added more string beginnings in previous post.
Search: /\[URL=[^]]*?\](.*?)\[\/URL\]/
Replace: \1
We use essential cookies to make this site work, and optional cookies to enhance your experience.