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

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

Author:  Freddy [ March 26th, 2014, 7:53 pm ]
Post subject:  Re: Replacements help topic.

Yes,

after http:// you could add the domain name. But the . (dot) must be escaped by \. Like this:

Code:
(?is)\[(url)=http://google\.com[^\]]+?](.*?)\[/\1\]


This would affect only google.com links. www\. might be needed as well.

Author:  Legenden [ March 26th, 2014, 9:37 pm ]
Post subject:  Re: Replacements help topic.

I'm probably doing it wrong because it is not working for me.

for this one
Code:
[url=http://svscomics.com/adult_comics/176895-the-best-amy-wong.html]The best Amy Wong
[/url]


Is this right?
Code:
(?is)\[(url)=http://www\.svscomics\.com[^\]]+?](.*?)\[/\1\]
$2

Author:  Freddy [ March 26th, 2014, 10:19 pm ]
Post subject:  Re: Replacements help topic.

You don't need www. , as you can see the url in the original message is without www. . I only said you might need www (meant only if original message has www.).

Author:  Legenden [ March 26th, 2014, 10:34 pm ]
Post subject:  Re: Replacements help topic.

I tried without first but did not work so tried with www but that did not work either..

now when I try it works 0_o must have done something else wrong first then :S
Anyway, now it works :) Thanks again!

Author:  VIPGFX [ March 30th, 2014, 5:52 pm ]
Post subject:  Re: Replacements help topic.

Code:
[url=http://xyz.xm/pictures/285635][img]http://xyz.com/uploads/f9/e0/002be0f9_thanks.jpeg[/img][/url]


how to change it to
Code:
[img]http://xyz.com/uploads/f9/e0/002be0f9_thanks.jpeg[/img]

or
Code:
[center][img]http://xyz.com/uploads/f9/e0/002be0f9_thanks.jpeg[/img][/center]

Author:  Freddy [ March 30th, 2014, 6:11 pm ]
Post subject:  Re: Replacements help topic.

Search string:
Code:
(?si)\[(url)=.+?\]\s*?(\[img\].+?\[/img\])\s*?\[/\1\]


Replace with:
Code:
$2


You can add center tags around $2 if needed.

Author:  VIPGFX [ March 30th, 2014, 6:38 pm ]
Post subject:  Re: Replacements help topic.

Freddy wrote:
Search string:
Code:
(?si)\[(url)=.+?\]\s*?(\[img\].+?\[/img\])\s*?\[/\1\]


Replace with:
Code:
$2


You can add center tags around $2 if needed.


cause I am noob, don't make confusion? how to add center plz show me clearly...
don't make wrong code?

Author:  Freddy [ March 30th, 2014, 6:53 pm ]
Post subject:  Re: Replacements help topic.

Replace with:

Code:
[center]$2[/center]

Author:  VIPGFX [ April 7th, 2014, 8:44 am ]
Post subject:  Re: Replacements help topic.

sorry for asking....
how to removed space one line or more...
can you give me regex option.
thanks.

Author:  Freddy [ April 7th, 2014, 9:42 am ]
Post subject:  Re: Replacements help topic.

I would need some before and after example.

Author:  VIPGFX [ April 9th, 2014, 8:13 am ]
Post subject:  Need Auto option for Blog Seperator?

I know their are blog seperator both TL and TP.
can you add option> both TL+TP
but can you make a option for automatically add blog seperater after Center or 1st 1-3 lines...
like this.
Before:
Code:
[center][img]image.com/xyz.jpg[/img][/center]
[center][b]PDF Experte 9.0.270 Ultimate | 64 MB[/b][/center]
The PDF Expert 9 Ultimate is a proven program for creating, editing, converting, and Protect PDF files. PDF Expert 9 Ultimate converts, among other files from the PDF to Word, RTF, Text and image files.
[b]Features[/b]
- PDF to Word conversion - converting in one click from any PDF into a Word file.
- Formats:


AFter:
Code:
[center][img]image.com/xyz.jpg[/img][/center]
[center][b]PDF Experte 9.0.270 Ultimate | 64 MB[/b][/center]
The PDF Expert 9 Ultimate is a proven program for creating, editing, converting, and Protect PDF files. PDF Expert 9 Ultimate converts, among other files from the PDF to Word, RTF, Text and image files.
==========
[b]Features[/b]
- PDF to Word conversion - converting in one click from any PDF into a Word file.
- Formats:


Or,

like this>
Code:
[center][img]image.com/xyz.jpg[/img][/center]
[center][b]PDF Experte 9.0.270 Ultimate | 64 MB[/b][/center]
==========
The PDF Expert 9 Ultimate is a proven program for creating, editing, converting, and Protect PDF files. PDF Expert 9 Ultimate converts, among other files from the PDF to Word, RTF, Text and image files.
[b]Features[/b]
- PDF to Word conversion - converting in one click from any PDF into a Word file.
- Formats:


Sounds like weird, but whenever I try to post so fast, sometime I forget to add separator on message, after send can't edit all news properly and lots of time consuming matter to do.
Thanks for understanding, and hope you will make it next updates.

Author:  Freddy [ April 9th, 2014, 9:14 am ]
Post subject:  Re: Replacements help topic.

It would need to be very specific replacement and it will not work if message does not have that text:

Search string:
Code:
(\[b\]Features\[/b\])


Replace with:
Code:
==========\n$1


Enable regex.

Author:  VIPGFX [ April 9th, 2014, 7:58 pm ]
Post subject:  Re: Replacements help topic.

Freddy wrote:
It would need to be very specific replacement and it will not work if message does not have that text:

Search string:
Code:
(\[b\]Features\[/b\])


Replace with:
Code:
==========\n$1


Enable regex.


have tested several time not works...yes, I always included with some text before posting.

Author:  Freddy [ April 9th, 2014, 8:01 pm ]
Post subject:  Re: Replacements help topic.

It works fine if your message text has this text somewhere:
Code:
[b]Features[/b]


Also you might have forgotten to enable regex.

Attachments:
1.png
1.png [ 80.14 KiB | Viewed 7997 times ]

Author:  VIPGFX [ April 9th, 2014, 9:08 pm ]
Post subject:  Re: Replacements help topic.

Code:
[center][img]image.com/xyz.jpg[/img][/center]
[center][b]PDF Experte 9.0.270 Ultimate | 64 MB[/b][/center]
==========
The PDF Expert 9 Ultimate is a proven program for creating, editing, converting, and Protect PDF files. PDF Expert 9 Ultimate converts, among other files from the PDF to Word, RTF, Text and image files.
[b]Features[/b]
- PDF to Word conversion - converting in one click from any PDF into a Word file.
- Formats:


sorry man, it works, can you make this special regex for blog separator.

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