It is currently March 28th, 2024, 12:01 pm



Post new topic Reply to topic  [ 283 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 19  Next
Author Message
 Post subject: Re: Replacements help topic.
PostPosted: March 26th, 2014, 7:53 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: March 26th, 2014, 9:37 pm 

Joined: June 27th, 2013, 6:52 pm
Posts: 58
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: March 26th, 2014, 10:19 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
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.).

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: March 26th, 2014, 10:34 pm 

Joined: June 27th, 2013, 6:52 pm
Posts: 58
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!


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: March 30th, 2014, 5:52 pm 

Joined: August 27th, 2013, 6:54 pm
Posts: 186
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]


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: March 30th, 2014, 6:11 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
Search string:
Code:
(?si)\[(url)=.+?\]\s*?(\[img\].+?\[/img\])\s*?\[/\1\]


Replace with:
Code:
$2


You can add center tags around $2 if needed.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: March 30th, 2014, 6:38 pm 

Joined: August 27th, 2013, 6:54 pm
Posts: 186
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: March 30th, 2014, 6:53 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
Replace with:

Code:
[center]$2[/center]

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: April 7th, 2014, 8:44 am 

Joined: August 27th, 2013, 6:54 pm
Posts: 186
sorry for asking....
how to removed space one line or more...
can you give me regex option.
thanks.


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: April 7th, 2014, 9:42 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
I would need some before and after example.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Need Auto option for Blog Seperator?
PostPosted: April 9th, 2014, 8:13 am 

Joined: August 27th, 2013, 6:54 pm
Posts: 186
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: April 9th, 2014, 9:14 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
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.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: April 9th, 2014, 7:58 pm 

Joined: August 27th, 2013, 6:54 pm
Posts: 186
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: April 9th, 2014, 8:01 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
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 7982 times ]

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister
Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: April 9th, 2014, 9:08 pm 

Joined: August 27th, 2013, 6:54 pm
Posts: 186
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 283 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 19  Next

Who is online

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