It is currently April 18th, 2024, 3:17 am



Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 29, 30, 31, 32, 33, 34, 35 ... 74  Next
Author Message
 Post subject: Re: Forum replacements problems.
PostPosted: May 16th, 2016, 8:56 pm 

Joined: September 21st, 2011, 1:04 pm
Posts: 139
before
Code:
[url=http://link1][img]http://link2[/img][/url]


after

Code:
[img]http://link2[/img]


and also

Code:
[img]http://link1[/img]


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 21st, 2016, 1:54 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 670
not sure if it's possible or not.

before:

http://ul.to/xxx/Pride.And.Prejudice.An ... part01.rar
http://ul.to/xxx/Pride.And.Prejudice.An ... part02.rar
http://rapidgator.net/file/xx/Pride.And ... 1.rar.html
http://rapidgator.net/filexx/Pride.And. ... 2.rar.html
https://1fichier.com/?xxx/Pride.And.Pre ... .part1.rar
https://1fichier.com/?xx/Pride.And.Prej ... .part2.rar


Afrer Set 1 replace:
[dl][titledownload]<strong>Uploaded</strong>[/titledownload]
[titledownload]<a href="http://ul.to/xxx/Pride.And.Prejudice.And.Zombies.2016.1080p.BluRay.x264-BLOW.part01.rar" target="_blank">Pride.And.Prejudice.And.Zombies.2016.720p.BluRay.x264-BLOW.part1.rar</a>
<a href="http://ul.to/xxx/Pride.And.Prejudice.And.Zombies.2016.1080p.BluRay.x264-BLOW.part02.rar" target="_blank">Pride.And.Prejudice.And.Zombies.2016.720p.BluRay.x264-BLOW.part2.rar</a>
[/titledownload][/dl]


[dl][titledownload]<strong>Rapidgator</strong>[/titledownload]
[titledownload]<a href="http://rapidgator.net/file/xx/Pride.And.Prejudice.And.Zombies.2016.1080p.BluRay.x264-BLOW.part01.rar.html" target="_blank">Pride.And.Prejudice.And.Zombies.2016.720p.BluRay.x264-BLOW.part1.rar</a>
<a href="http://rapidgator.net/filexx/Pride.And.Prejudice.And.Zombies.2016.1080p.BluRay.x264-BLOW.part02.rar.html" target="_blank">Pride.And.Prejudice.And.Zombies.2016.720p.BluRay.x264-BLOW.part2.rar</a>
[/titledownload][/dl]


[dl][titledownload]<strong>Rapidgator</strong>[/titledownload]
[titledownload]<a href="https://1fichier.com/?xxx/Pride.And.Prejudice.And.Zombies.2016.720p.BluRay.x264-BLOW.part1.rar" target="_blank">Pride.And.Prejudice.And.Zombies.2016.720p.BluRay.x264-BLOW.part1.rar</a>
<a href="https://1fichier.com/?xx/Pride.And.Prejudice.And.Zombies.2016.720p.BluRay.x264-BLOW.part2.rar">Pride.And.Prejudice.And.Zombies.2016.720p.BluRay.x264-BLOW.part2.rar</a>
[/titledownload][/dl]

After set 2 replace:

Uploaded
Code:
http://ul.to/xxx/Pride.And.Prejudice.And.Zombies.2016.1080p.BluRay.x264-BLOW.part01.rar
http://ul.to/xxx/Pride.And.Prejudice.And.Zombies.2016.1080p.BluRay.x264-BLOW.part02.rar


Rapidgator
Code:
http://rapidgator.net/filexx/Pride.And.Prejudice.And.Zombies.2016.1080p.BluRay.x264-BLOW.part02.rar.html
https://1fichier.com/?xxx/Pride.And.Prejudice.And.Zombies.2016.720p.BluRay.x264-BLOW.part1.rar
https://1fichier.com/?xx/Pride.And.Prejudice.And.Zombies.2016.720p.BluRay.x264-BLOW.part2.rar


1Fichier
Code:
https://1fichier.com/?xxx/Pride.And.Prejudice.And.Zombies.2016.720p.BluRay.x264-BLOW.part1.rar
https://1fichier.com/?xx/Pride.And.Prejudice.And.Zombies.2016.720p.BluRay.x264-BLOW.part2.rar


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 22nd, 2016, 2:13 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12640
Location: Earth
@Crackpot do you really want to mix it with HTML? themaPoster already has option to convert to HTML automatically if needed. I would suggest to convert to BBCode so you could post it in forums if needed as well.

------------------------------------------------------------------------------------------

vandt wrote:
before
Code:
[url=http://link1][img]http://link2[/img][/url]


after

Code:
[img]http://link2[/img]


and also

Code:
[img]http://link1[/img]


This will affect all images surrounded with "url" tag:

Search for:
Code:
(?i)\[url=(.+?)\]\[img\](.+?)\[/img\]\[/url\]


Replace with:
Code:
[img]$2[/img]


OR

Replace with:
Code:
[img]$1[/img]


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 26th, 2016, 7:15 am 

Joined: May 5th, 2011, 9:45 am
Posts: 124
Hi!
Can you help me with 2 spoiler code for one forum

Before
Code:
[url=http://depic.me/4wlel8rpwft0/blabla.jpg][img]http://s5.depic.me/01492/4wlel8hhwft0.jpg[/img][/url]

[b] Preview:
[URL=http://imagetwist.com/jbjevrl9qyo1/blabla.jpg.html][IMG]http://img107.imagetwist.com/th/08264/jbjebbl9qyo1.jpg[/IMG][/URL]

[i] [color=#e20505] File Size [/color]:  2 MB
[color=#e20505] Duration [/color]:  00:7min
[color=#e20505] Video [/color]:  MPEG-4
[color=#e20505] Resolution [/color]:  1920x1080 [/i]

[color=#2476ee] Download Links  [/color]: [/b]
[url=http://k2s.cc/file/cc26b8338ddfd/blabla.rar]blabla.rar[/url]


After
Code:
[SPOILER][url=http://depic.me/4wlel8rpwft0/blabla.jpg][img]http://s5.depic.me/01492/4wlel8hhwft0.jpg[/img][/url]

[b] Preview:
[url=http://imagetwist.com/jbjevrl9qyo1/blabla.jpg.html][img]http://img107.imagetwist.com/th/08264/jbjebbl9qyo1.jpg[/img][/url][/SPOILER]

[i] [color=#e20505] File Size [/color]:  2 MB
[color=#e20505] Duration [/color]:  00:7min
[color=#e20505] Video [/color]:  MPEG-4
[color=#e20505] Resolution [/color]:  1920x1080 [/i]

[color=#2476ee] Download Links  [/color]: [/b]
[SPOILER][url=http://k2s.cc/file/cc26b8338ddfd/blabla.rar]blabla.rar[/url][/SPOILER]


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: May 26th, 2016, 8:06 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 670
Code:
Search for:
\[url=(http://depic.me.*?)\](.*?)\[/url\]

Replace (select regex):
[spoiler][url=$1]$2[/url]

============================

Search for:
\[url=(http://imagetwist.com.*?)\](.*?)\[/URL\]

Replace (select regex):
[url=$1]$2[/url][/spoiler]

=============================

Search for:
\[url=(http://k2s.cc.*?)\](.*?)\[/url\]


Replace (select regex):
[spoiler][url=$1]$2[/url][/spoiler]


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 12th, 2016, 8:24 am 

Joined: May 5th, 2011, 9:45 am
Posts: 124
Crackpot wrote:
Code:
Search for:
\[url=(http://depic.me.*?)\](.*?)\[/url\]

Replace (select regex):
[spoiler][url=$1]$2[/url]

============================

Search for:
\[url=(http://imagetwist.com.*?)\](.*?)\[/URL\]

Replace (select regex):
[url=$1]$2[/url][/spoiler]

=============================

Search for:
\[url=(http://k2s.cc.*?)\](.*?)\[/url\]


Replace (select regex):
[spoiler][url=$1]$2[/url][/spoiler]


If i have split files this wraps each part:
Code:
[color=#2476ee] Download Links  [/color]: [/b]
[spoiler][url=http://k2s.cc/file/cc26b8338ddfd/blabla.rar]blabla.part1.rar[/url][/spoiler]
[spoiler][url=http://k2s.cc/file/cc26b8338ddfd/blabla.rar]blabla.part2.rar[/url][/spoiler]

How i can do this:
Code:
[color=#2476ee] Download Links  [/color]: [/b]
[spoiler][url=http://k2s.cc/file/cc26b8338ddfd/blabla.rar]blabla.part1.rar[/url]
[url=http://k2s.cc/file/cc26b8338ddfd/blabla.rar]blabla.part2.rar[/url][/spoiler]


Thanks


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 12th, 2016, 8:29 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12640
Location: Earth
Search for:
Code:
(?is)\[spoiler\](.+?)\[/spoiler\](.+?)\[spoiler\](.+?)\[/spoiler\]


Replace with:
Code:
[spoiler]$1$2$3[/spoiler]


Enable regex search.

But will only work with two links.

Better option would be not use any spoiler tags and let program's "links" tag to add them automatically: http://poster.freddy.lt/faq.php?expand=faq104

You can remove existing spoiler tags with two simple (not regex) replacements by just replacing them to nothing.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 15th, 2016, 4:22 pm 

Joined: December 30th, 2013, 3:54 pm
Posts: 319
Hello
I need to replace all dots in line containing center

before
Code:
[center][b][size=3][color=lightseagreen]Blood.Bath.1966.BDRiP.X264-TASTE[/color][/b][/size]


after
Code:
[center][b][size=3][color=lightseagreen]Blood Bath 1966 BDRiP X264-TASTE[/color][/b][/size]


I tried to do it myself by changing regex made by you, but it's replacing only first dot :(

Code:
(center)(.+?)(\.)
$1$2


Thank for help


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 16th, 2016, 5:35 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12640
Location: Earth
Hi,

does it really matter? I doubt anyone is really looking or care about that line.

The only way to do it is probably be specific how many dots there are:

Search for:
Code:
(center.+?)\.(.+?)\.(.+?)\.(.+?)\.


Replace with:
Code:
$1 $2 $3 $4


Enable regex search.

This would work with 4 dots, but won't work in other cases.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: June 16th, 2016, 5:52 pm 

Joined: December 30th, 2013, 3:54 pm
Posts: 319
No tbh it doesn't rly matter but I thought it was an easy replace for regex, anyway thanks for your help :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 6th, 2016, 9:48 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 670
i have text like this:

[text1] description

description

description[/text1]

can we remove this text1 block using regex?


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 6th, 2016, 4:18 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12640
Location: Earth
Yes,

Search for:
Code:
(?is)\[text1\].+?\[/text1\]


Replace with:
Code:
(leave empty)


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 6th, 2016, 7:18 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 670
thank you, working fine.


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 17th, 2016, 1:14 pm 

Joined: December 30th, 2013, 3:54 pm
Posts: 319
Hello Freddy

Sorry for bothering you again but need your help once again:

Code:
http://rapidgator.net/file/a695c6b91b0d6dcdbbe843626319d476/A.Bigger.Splash.2015.720p.BluRay.X264-AMIABLE.part1.rar.html
http://rapidgator.net/file/d3b8c995a1231a23182d1c9ba0e6197e/A.Bigger.Splash.2015.720p.BluRay.X264-AMIABLE.part2.rar.html
http://rapidgator.net/file/fe475fc508483a0fff8975764c882402/A.Bigger.Splash.2015.720p.BluRay.X264-AMIABLE.part3.rar.html


to html version with a href:

Code:
<a href="http://rapidgator.net/file/a695c6b91b0d6dcdbbe843626319d476/A.Bigger.Splash.2015.720p.BluRay.X264-AMIABLE.part1.rar.html">A.Bigger.Splash.2015.720p.BluRay.X264-AMIABLE.part1</a>
<a href="http://rapidgator.net/file/d3b8c995a1231a23182d1c9ba0e6197e/A.Bigger.Splash.2015.720p.BluRay.X264-AMIABLE.part2.rar.html">A.Bigger.Splash.2015.720p.BluRay.X264-AMIABLE.part2</a>
<a href="http://rapidgator.net/file/fe475fc508483a0fff8975764c882402/A.Bigger.Splash.2015.720p.BluRay.X264-AMIABLE.part3.rar.html">A.Bigger.Splash.2015.720p.BluRay.X264-AMIABLE.part3</a>


ofc links will be different every time.
Edit: sometimes instead of . dot there is an underline _ in the name of link

and
sometimes it's ending with .rar.html instead of .part1 or .part2

btw: I know that TP can convert message to html but tbh I'll be posting manually and then use TM to manage my posts, that replacement will be for different program using regex...

Anyway I hope it's possible and you will have some time to do it:)

Have a good day


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: September 17th, 2016, 3:31 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12640
Location: Earth
Search for:
Code:
https?://rapidgator\.net[^\s]+/(.+?)\.html


Replace with:
Code:
<a href="$0">$1</a>


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 29, 30, 31, 32, 33, 34, 35 ... 74  Next

Who is online

Users browsing this forum: Bing [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC