themaLeecher
http://leecher.themasoftware.com/forum/

Replacements help topic.
http://leecher.themasoftware.com/forum/viewtopic.php?f=4&t=5860
Page 16 of 19

Author:  mitsumi [ February 21st, 2020, 2:53 pm ]
Post subject:  Re: Replacements help topic.

before
Code:
[b]Voxengo SPAN Plus 1.10[/b]
[center][img]https://pixhost.icu/avaxhome/f4/2e/00632ef4_medium.jpg[/img][/center]
[b]Voxengo SPAN Plus 1.10 | 8 Mb[/b]


after
Code:
[b]Voxengo SPAN Plus 1.10[/b]
[center][img]https://pixhost.icu/avaxhome/f4/2e/00632ef4_medium.jpg[/img][/center]
[center][b]Voxengo SPAN Plus 1.10 | 8 Mb[/b][/center]


How to add a CENTER tag to any text ?
It is different for every post

Author:  Freddy [ February 22nd, 2020, 6:46 am ]
Post subject:  Re: Replacements help topic.

Search for:
Code:
(\[img\]https?://pixhost.+?\[/center\]\n)(.+)


Replace with:
Code:
$1[center]$2[/center]


Enable regex search.

Author:  flaiho [ March 4th, 2020, 12:56 am ]
Post subject:  Re: Replacements help topic.

Code:
https://www.youtube.com/watch?v=G_1LP3Z6pW4


to

Code:
[embed]https://www.youtube.com/embed/G_1LP3Z6pW4[/embed]

Author:  Freddy [ March 4th, 2020, 7:34 am ]
Post subject:  Re: Replacements help topic.

Search for:
Code:
https?://.*?youtube\.com.+


Replace with:
Code:
[embed]$0[/embed]


Enable regex.

Author:  flaiho [ March 5th, 2020, 2:02 am ]
Post subject:  Re: Replacements help topic.

Freddy wrote:
Search for:
Code:
https?://.*?youtube\.com.+


Replace with:
Code:
[embed]$0[/embed]


Enable regex.


yes but i wanna change also

watch?v=

to

embed/

Author:  Freddy [ March 6th, 2020, 6:02 pm ]
Post subject:  Re: Replacements help topic.

You just wrote the replacement :)))

Just add simple (not regex) replacement:

Search for:
Code:
watch?v=


Replace with:
Code:
embed/

Author:  flaiho [ May 15th, 2020, 4:11 am ]
Post subject:  Re: Replacements help topic.

Code:
from

Text

This is just a text



This is just a text 2



This is just a text 3

to

Text

This is just a text
This is just a text 2
This is just a text 3


basically remove exactly 3 empty lines but not single lines

Author:  Freddy [ May 15th, 2020, 4:39 am ]
Post subject:  Re: Replacements help topic.

Search for:
Code:
\n{3,}


Replace with:
Code:
\n\n


Enable regex search.

Author:  dbrdrgd [ January 28th, 2021, 12:06 pm ]
Post subject:  Re: Replacements help topic.

Thanks

Author:  dbrdrgd [ January 28th, 2021, 12:06 pm ]
Post subject:  Re: Replacements help topic.

Before

Code:
[url=https://imagetwist.com/q1hhixpwo0nv/15304064.jpg.html][img]https://img202.imagetwist.com/th/35728/q1hhixpwo0nv.jpg[/img][/url]
★無 ★ 2名 HD 地下鉄追跡美女便所放尿 6
商品番号:15304064
配信開始日:2019年11月17日 12時
還元率:—
売り手様:Davidpiano
ファイル形式:video/mp4
ファイルサイズ:377.34 MB
再生時間:00:20:43画面サイズ:幅1280px × 高さ720pxビットレート:4000K
[b]Link Online:[/b]
[code]https://aparat.cam/t81tp590459f/15304064.mp4.html[/code]


After

Code:
[url=https://imagetwist.com/q1hhixpwo0nv/15304064.jpg.html][img]https://img202.imagetwist.com/th/35728/q1hhixpwo0nv.jpg[/img][/url]
[b]Link Online:[/b]
[code]https://aparat.cam/t81tp590459f/15304064.mp4.html[/code]

Author:  Freddy [ January 29th, 2021, 8:43 pm ]
Post subject:  Re: Replacements help topic.

Search for:
Code:
(?si)(\[url=.+?\[/url\]).+?(\[b\]Link Online)


Replace with:
Code:
$1\n$2


Enable regex search.

Author:  dbrdrgd [ January 30th, 2021, 6:41 am ]
Post subject:  Re: Replacements help topic.

Thanks

Author:  dbrdrgd [ February 22nd, 2021, 5:26 am ]
Post subject:  Re: Replacements help topic.

Before
Code:
<div class="card mb-3">
sfgfg
ggh
</div>
</div>
<div class="card mb-3">
sdfgsfg
dgfhdfgh
</div>
</div>
<div class="card mb-3">
fgsdfgg
dghdfgh
</div>
</div>


After
Code:
<div class="card mb-3">
sfgfg
dghdfg
</div>
</div>

<div class="card mb-3">
sdfgsfg
dfghdg
</div>
</div>

<div class="card mb-3">
fgsdfgg
dfghhdgf
</div>
</div>


Thank you.

Author:  Freddy [ February 22nd, 2021, 8:41 am ]
Post subject:  Re: Replacements help topic.

Search for:
Code:
<div class="card mb-3">


Replace with:
Code:
\n<div class="card mb-3">


Simple replacement (not regex).

Author:  flaiho [ May 25th, 2021, 8:33 am ]
Post subject:  Re: Replacements help topic.

Hey freddy.


how to remove the last 10 characters from a line using the regex? doesnt matter if its numbers or letter

let say. tl leechs the title: My Title 100example

100example its a text which always change the number and example is a fix word. removing em take 10 characters so how remove these 10 characters donest matter what the text is.

can you help me please :)?


Before

Code:
My Title 100example
Other Title 200example


After

Code:
My Title
Other Title

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