themaPoster
http://poster.themasoftware.com/forum/

Forum replacements problems.
http://poster.themasoftware.com/forum/viewtopic.php?f=4&t=634
Page 70 of 74

Author:  Freddy [ August 10th, 2022, 6:22 pm ]
Post subject:  Re: Forum replacements problems.

It's possible. Will write them tomorrow.

Author:  Freddy [ August 11th, 2022, 9:14 am ]
Post subject:  Re: Forum replacements problems.

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.

Author:  Crackpot [ August 22nd, 2022, 4:42 am ]
Post subject:  Re: Forum replacements problems.

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.

Author:  Freddy [ August 22nd, 2022, 5:10 am ]
Post subject:  Re: Forum replacements problems.

I have mentioned it here already: http://creator.themasoftware.com/forum/ ... 389#p24389

That's the only way I know.

Author:  Crackpot [ November 6th, 2022, 6:06 am ]
Post subject:  Re: Forum replacements problems.

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

Author:  Freddy [ November 6th, 2022, 7:14 am ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
(?s)(\[mediainfo\].+?\[/mediainfo\])(.+?)(\[download\].+?\[/download\])


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


Enable regex search.

Author:  Crackpot [ November 6th, 2022, 5:03 pm ]
Post subject:  Re: Forum replacements problems.

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

Author:  Freddy [ November 6th, 2022, 6:22 pm ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
\[/screenshot\]\s*\[download\]


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


Enable regex search.

Author:  Crackpot [ November 24th, 2022, 7:54 pm ]
Post subject:  Re: Forum replacements problems.

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]

Author:  Freddy [ November 25th, 2022, 8:20 am ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
(\[subtitle\].+?,.+?,.+?,.+?,.+?,.+?),.+?(\[/subtitle\])


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


Enable regex search.

Author:  Crackpot [ November 27th, 2022, 2:02 pm ]
Post subject:  Re: Forum replacements problems.

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

Author:  Freddy [ November 27th, 2022, 3:22 pm ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
\[multi\].+?\[/multi\]\n*\[rapidgator\](.+?)\[/rapidgator\]\n*\[mega\].+?\[/mega\]


Replace with:
Code:
$1


Enable regex search.

Author:  BuscaTreskys [ December 10th, 2022, 9:40 pm ]
Post subject:  Re: Forum replacements problems.

Hi,

Eliminate betwen [EXVAGOS][/EXVAGOS]

input:
Code:
[B][SIZE=4][COLOR=Blue]UPTOBOX[/COLOR][/SIZE][/B]

[EXVAGOS][URL]https://uptobox.com/x8olirtdqncw/CDRAWGS2022.v24.2.0.444.ByMi.part1.rar[/URL]
[URL]https://uptobox.com/icvssdpxtn6c/CDRAWGS2022.v24.2.0.444.ByMi.part2.rar[/URL]

[B][COLOR="#000080"][SIZE=6][FONT=Arial Black]Resource Content[/FONT][/SIZE][/COLOR][/B]

[URL]https://uptobox.com/1k70d5dhj49q/CDRAWGS2022C.ByMi.part1.rar[/URL]
[URL]https://uptobox.com/6dcf4cleb6bq/CDRAWGS2022C.ByMi.part2.rar[/URL]
[URL]https://uptobox.com/yu9bgg2vmq09/CDRAWGS2022C.ByMi.part3.rar[/URL]
[URL]https://uptobox.com/fsm7lksfahml/CDRAWGS2022C.ByMi.part4.rar[/URL]
[URL]https://uptobox.com/difjfo76h6sz/CDRAWGS2022C.ByMi.part5.rar[/URL]
[URL]https://uptobox.com/l96uwsbuu3kz/CDRAWGS2022C.ByMi.part6.rar[/URL]
[URL]https://uptobox.com/5cfpi294cd7a/CDRAWGS2022C.ByMi.sfv[/EXVAGOS]


output:
Code:
[B][SIZE=4][COLOR=Blue]UPTOBOX[/COLOR][/SIZE][/B]

Author:  Freddy [ December 11th, 2022, 12:01 pm ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
(?si)\[EXVAGOS\].+?\[/EXVAGOS\]\s?


Replace with:
Code:
(leave empty)


Enable regex search.

Author:  Crackpot [ December 14th, 2022, 2:36 pm ]
Post subject:  Re: Forum replacements problems.

how to add text end of the post?

Image

Page 70 of 74 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/