It is currently April 28th, 2024, 4:14 pm



Post new topic Reply to topic  [ 1106 posts ]  Go to page Previous  1 ... 58, 59, 60, 61, 62, 63, 64 ... 74  Next
Author Message
 Post subject: Re: Forum replacements problems.
PostPosted: January 23rd, 2021, 1:03 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12646
Location: Earth
@Bak3

Search for:
Code:
(?si)\[b\]Book:\[/b\].+?(Download from)


Replace with:
Code:
$1


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 5th, 2021, 5:23 pm 

Joined: August 17th, 2016, 8:29 pm
Posts: 244
Hello

before

[url=https://www.imdb.com/title/tt9340860/]iMDB info[ /url]

After
iMDB info
Code:
https://www.imdb.com/title/tt9340860/


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 5th, 2021, 6:51 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12646
Location: Earth
Search for:
Code:
\[url=(https?://.*?imdb\.com.+?)\](.+?)\[/url\]


Replace with:
Code:
$2\n[code]$1[/code]


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 6th, 2021, 1:23 am 

Joined: October 29th, 2020, 6:50 pm
Posts: 14
Hello,

Before:
Swallowed.21.01.16.Khloe.Kapri.And.Brooklyn.Gray.XXX.720p.WEB.x264-GalaXXXy[XvX]

After:
Swallowed - Khloe Kapri And Brooklyn Gray (21.01.16)

I will Try only this, ([\w]+).*\d.([\s\S]+)\.XXX


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 6th, 2021, 7:23 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12646
Location: Earth
Search for:
Code:
(.+)([0-9]{2}.[0-9]{2}.[0-9]{2}).(.+?)XXX.+


Replace with:
Code:
$1- $3($2)


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 17th, 2021, 9:14 pm 

Joined: August 22nd, 2015, 11:54 pm
Posts: 62
Helo everypne,

Mybe the solutionn exists in somewhere answer in this threat but there are so many answer. Please a need eliminate the bbcode.

this:

Code:
[everyone likes vowels][b][size=4][color=Blue]AYUDA[/color][/size][/b]


for:

Code:
AYUDA


I try some solutions but this aren´t complete.

Code:
\[\w[\]$]
\[\W+\w+[\]$]

\[\w+\W\w+\]
(\[[A-Z]\])


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 17th, 2021, 10:00 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12646
Location: Earth
Search for:
Code:
.+?\[b\]\[size=4\]\[color=Blue\](.+?)\[/color\]\[/size\]\[/b\]


Replace with:
Code:
$1


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 19th, 2021, 9:05 pm 

Joined: August 22nd, 2015, 11:54 pm
Posts: 62
Shaki wrote:
Hi Freddy
I need this change in one forum

before

Code:
The 13th Warrior 1999 1080p BRRip x265-RARBG [1.6 GB]
Locked Alone 2018 WEBRip x264-ION10 [803 MB]
Vida S03E05 Episode 21 720p AMZN WEB-DL DDP5 1 H 264-KiNGS [1.41 GB]
Snowpiercer S01E03 Access Is Power 720p NF WEBRip DD+5 1 x264- [2.16 GB]


after

Code:
The 13th Warrior 1999 1080p BRRip x265-RARBG
Locked Alone 2018 WEBRip x264-ION10
Vida S03E05 Episode 21 720p AMZN WEB-DL DDP5 1 H 264-KiNGS
Snowpiercer S01E03 Access Is Power 720p NF WEBRip DD+5 1 x264-


Thank You


Freddy wrote:
For subject this would work:

Search for:
Code:
\[.+\]$


Replace with:
Code:
(leave empty)


Enable regex search.


This regex only replace the last [2.16 GB] but the others stay here. How to do for eliminate the others, [1.6 GB], [803 MB] and [1.41 GB]. And if this replace are at the begin.

Code:
[1.6 GB]The 13th Warrior 1999 1080p BRRip x265-RARBG
[803 MB]Locked Alone 2018 WEBRip x264-ION10
[1.41 GB]Vida S03E05 Episode 21 720p AMZN WEB-DL DDP5 1 H 264-KiNGS
[2.16 GB]Snowpiercer S01E03 Access Is Power 720p NF WEBRip DD+5 1 x264


The replace doesn't work. Please, is posible with only onereplace regex or needs two, one for to replace at beginin and other for replace to the end?


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 19th, 2021, 9:33 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12646
Location: Earth
Your example was only at the end so I wrote it that way.

Yes, it's possible with one replacement. Delete the previous and add this:

Search for:
Code:
\[.+?\]


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: February 21st, 2021, 12:24 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 670
input
Quote:
[movie]Palm.Springs.2020.1080p.BluRay.x264-USURY[/movie]



output
Quote:
[movie]Palm Springs (2020)[/movie]


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

input
Quote:
[movie]Palm.Springs. (2020)[/movie]


output
Quote:
[movie]Palm Springs (2020)[/movie]


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 21st, 2021, 7:46 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12646
Location: Earth
There is no easy way to remove the dots. If you generate posts with themaCreator use the <postSubject> tag in "Main" template there. It will be without spaces.

Search for:
Code:
(\[movie\].+?[0-9]{4}).+?(\[/movie\])


Replace with:
Code:
$1$2


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 21st, 2021, 10:11 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 670
Freddy wrote:
There is no easy way to remove the dots. If you generate posts with themaCreator use the <postSubject> tag in "Main" template there. It will be without spaces.

Search for:
Code:
(\[movie\].+?[0-9]{4}).+?(\[/movie\])


Replace with:
Code:
$1$2


Enable regex search.


thank you for quick reply.

i keeping posting title: Palm.Springs.2020.1080p.BluRay.x264-USURY (just my preference, site has no seo)

suggested regex giving this result:

input:
Quote:
[movie]Palm.Springs.2020.1080p.BluRay.x264-USURY[/movie]


output:
Quote:
[movie]Palm.Springs.2020[/movie]


which i am looking is:
Quote:
[movie]Palm Springs (2020)[/movie]


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

i already made few post which has (i will use TM for replacement)

[movie]Palm.Springs. (2020)[/movie]

is there anyway i can remove the . (dot) between [movie] [/movie] text?


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 21st, 2021, 10:29 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12646
Location: Earth
There is no easy way to remove the dots between that tag.

Search for:
Code:
(\[movie\].+?)([0-9]{4}).+?(\[/movie\])


Replace with:
Code:
$1($2)$3


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 21st, 2021, 11:00 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 670
alright got it. one more help please. i already made tons of post. there is an extra space between year and name. possible to remove one space?

input
Quote:
[movie]Palm Springs (2020)[/movie]


output
Quote:
[movie]Palm Springs (2020)[/movie]


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: February 21st, 2021, 11:39 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12646
Location: Earth
Search for:
Code:
\s+(\([0-9]{4}\)\[/movie\])


Replace with:
Code:
 $1


Enable regex search.

There is one space in replace with before the "$1". You must include that one space.

_________________
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 ... 58, 59, 60, 61, 62, 63, 64 ... 74  Next

Who is online

Users browsing this forum: No registered users and 26 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:  
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC