It is currently December 3rd, 2022, 5:07 am



Post new topic Reply to topic  [ 1047 posts ]  Go to page Previous  1 ... 66, 67, 68, 69, 70
Author Message
 Post subject: Re: Forum replacements problems.
PostPosted: August 10th, 2022, 6:22 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12010
Location: Earth
It's possible. Will write them tomorrow.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Fikper.com - Cloud Storage - PPS / PPD
 Post subject: Re: Forum replacements problems.
PostPosted: August 11th, 2022, 9:14 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12010
Location: Earth
Search for:
Code:
<a href.+?google\.com.+?>N/A</a>


Replace with:
Code:
N/A


Enable regex search.

Search for:
Code:
(<a href.+?google\.com.+?>.+?)(.\((writer|story)\))(</a>)


Replace with:
Code:
$1$4$2


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 22nd, 2022, 4:42 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 584
input
Code:
Drama, Action & Adventure, Sci-Fi & Fantasy


output
Code:
<a href="https://google.com/search.php=Drama">Drama</a>, <a href="https://google.com/search.php=Action & Adventure">Action & Adventure</a>, <a href="https://google.com/search.php=Sci-Fi & Fantasy">Sci-Fi & Fantasy</a>


i will use this replacement manually. basically there will not be any other content so the replace won't mixed up with other post part.


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: August 22nd, 2022, 5:10 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12010
Location: Earth
I have mentioned it here already: http://creator.themasoftware.com/forum/ ... 389#p24389

That's the only way I know.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 6th, 2022, 6:06 am 

Joined: March 30th, 2015, 12:31 pm
Posts: 584
not sure if it's possible, can you please look at this regex
input:

Code:
random textadasd
[mediainfo]random text[/mediainfo]
textrandom
[download]https://google.com/tetst[/download]



output:
Code:
random textadasd
[download]https://google.com/tetst[/download]
[mediainfo]random text[/mediainfo]
textrandom


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 6th, 2022, 7:14 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12010
Location: Earth
Search for:
Code:
(?s)(\[mediainfo\].+?\[/mediainfo\])(.+?)(\[download\].+?\[/download\])


Replace with:
Code:
$3\n$1$2


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 6th, 2022, 5:03 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 584
thank you so much, i could have use \n\r but there could be more line or less line for the following replacement. any regex can we use? i think you gave me solution before but I cannot remember it now. i also search entire TP post but I could not find it.

input
Code:
random text etc
[screenshot][/screenshot]




[download][/download]
random text etc


output
Code:
random text etc
[screenshot][/screenshot][download][/download]
random text etc


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 6th, 2022, 6:22 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12010
Location: Earth
Search for:
Code:
\[/screenshot\]\s*\[download\]


Replace with:
Code:
[/screenshot][download]


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 24th, 2022, 7:54 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 584
Code:
input
[subtitle]English, Arabic, Bulgarian, Czech, Danish, German, Greek, Spanish, Estonian, Finnish, French, Hebrew, Hindi, Hungarian, Indonesian, Italian, Japanese, Korean, Lithuanian, Latvian, Malay, Dutch, Norwegian, Polish, Portuguese, Russian, Slovak, Slovenian, Swedish, Tamil, Telugu, Thai, Turkish, Ukrainian, Vietnamese, Chinese[/subtitle]

output
[subtitle]English, Arabic, Bulgarian, Czech, Danish, German and more..[/subtitle]


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 25th, 2022, 8:20 am 
Site Admin
User avatar

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


Replace with:
Code:
$1 and more..$2


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 27th, 2022, 2:02 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 584
possible to make it using by one regex replacement
Code:
input
[multi]multi content[/multi]
[rapidgator]rapidgator content[/rapidgator]
[mega]mega content[/mega]

output
rapidgator content


Top
 Profile  
Reply with quote  
 Post subject: Re: Forum replacements problems.
PostPosted: November 27th, 2022, 3:22 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12010
Location: Earth
Search for:
Code:
\[multi\].+?\[/multi\]\n*\[rapidgator\](.+?)\[/rapidgator\]\n*\[mega\].+?\[/mega\]


Replace with:
Code:
$1


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  [ 1047 posts ]  Go to page Previous  1 ... 66, 67, 68, 69, 70

Who is online

Users browsing this forum: No registered users 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