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

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

Author:  stefan-te [ May 12th, 2020, 9:33 pm ]
Post subject:  Re: Forum replacements problems.

i didnt tough of it :D thanks!

Author:  ad-team [ May 17th, 2020, 8:42 pm ]
Post subject:  Re: Forum replacements problems.

Hello

before
Code:
[url]http://nitroflare.com/view/4C936AB360740CA/[/url]

Code:
[url]https://rapidgator.net/file/bfc8e7c32e226710330761d046fa1977[/url]


After
Code:
[leech=http://nitroflare.com/view/4C936AB360740CA/]Download From Nitroflare[/leech]

[leech=https://rapidgator.net/file/bfc8e7c32e226710330761d046fa1977]Download From Rapidgator[/leech]

Author:  Freddy [ May 18th, 2020, 6:56 am ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
\[url\](https?://nitroflare.+?)\[/url\]


Replace with:
Code:
[leech=$1]Download From Nitroflare[/leech]


Enable regex search.

---

Search for:
Code:
\[url\](https?://rapidgator.+?)\[/url\]


Replace with:
Code:
[leech=$1]Download From Rapidgator[/leech]


Enable regex search.

Author:  ad-team [ May 22nd, 2020, 12:28 am ]
Post subject:  Re: Forum replacements problems.

Hello Bro
Before
Code:
some text
[img]https://steamcdn-a.akamaihd.net/steam/apps/865980/extras/bossgard_crush_your_friends.gif?t=1590087635[/img]

After
Code:
some text

Author:  Freddy [ May 22nd, 2020, 8:18 am ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
\[img\]https?://steamcdn.+?\[/img\]\s?


Replace with:
Code:
(leave empty)


Enable regex search.

Author:  ad-team [ May 22nd, 2020, 5:06 pm ]
Post subject:  Re: Forum replacements problems.

not work bro test my example to see

Author:  Freddy [ May 22nd, 2020, 6:06 pm ]
Post subject:  Re: Forum replacements problems.

I always test on your example. It works fine.

Maybe you copied some extra space at the end or didn't enabled the "Regex" option.

Author:  ad-team [ May 22nd, 2020, 7:21 pm ]
Post subject:  Re: Forum replacements problems.

i checked yeah its space lol
thanks bro

Author:  ad-team [ May 22nd, 2020, 8:42 pm ]
Post subject:  Re: Forum replacements problems.

Before
Code:
Fine Homebuilding 2009 Full Year By: Taunton Press



After:
Code:
Fine Homebuilding 2009 Full Year

mean delete By:xxxxx
thanks bro

Author:  Freddy [ May 24th, 2020, 7:04 am ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
(.+?)By:.+


Replace with:
Code:
$1


Enable regex search.

Author:  Vita [ May 27th, 2020, 1:06 pm ]
Post subject:  Re: Forum replacements problems.

Hi Freddy, tell me how it is right here, It is necessary to delete the picture

This does not work \[img\]https?://imageban.+?\[/img\]\s?


Befor
Code:
[img]https://fs1.directupload.net/images/181024/etcqgcod.jpg[/img]

Code:
[img]https://i4.imageban.ru/out/2019/09/17/cea50.png[/img]


After
Code:
(leave empty)

Author:  Freddy [ May 27th, 2020, 1:18 pm ]
Post subject:  Re: Forum replacements problems.

Search for:
Code:
\[img\]https?://.*?imageban.+?\[/img\]\s?


Replace with:
Code:
(leave empty)


Enable regex search.

Search for:
Code:
\[img\]https?://.*?directupload.+?\[/img\]\s?


Replace with:
Code:
(leave empty)


Enable regex search.

Author:  ziggyzab [ May 29th, 2020, 5:53 am ]
Post subject:  Re: Forum replacements problems.

Original

Code:
[url=https://sanet.st/user/jumbojax/]jumbojax[/url]


USERNAME is random, not always this above

replace to
Code:
"nothing"

Author:  stefan-te [ May 29th, 2020, 10:59 am ]
Post subject:  Re: Forum replacements problems.

you can use this,

Code:
\[url=.*sanet\.st\/user.*\[\/url\]


replace with nothing, and enable regex

Author:  Freedom35 [ June 7th, 2020, 9:10 am ]
Post subject:  Re: Forum replacements problems.

Hey
I don't know if this is possible to create taqs from post content with regex.
Let's say I want to add generate tags based on this line without loosing the text

before
Code:
[b]Genre:[/b] Animation, Crime, Drama, Mystery, Sci-Fi, Thriller


After
Code:
[b]Genre:[/b] <tags>Animation, Crime, Drama, Mystery, Sci-Fi, Thriller</tags>Animation, Crime, Drama, Mystery, Sci-Fi, Thriller


Ofc the genre words will change
Code:
[b]Genre:[/b]
will always be there

That way tags will be posted and text will remain.
Thank You

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