It is currently March 28th, 2024, 8:03 pm



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: What is the order of applied replacements?
PostPosted: November 27th, 2015, 1:49 pm 

Joined: September 21st, 2011, 1:04 pm
Posts: 139
seem ordinarily is regex replace>normal replace , not is what be add early.
example original message :
Quote:

themaposter
linkdelete


if I add some replacement:

Quote:
(1-2-3 is ordinarily added)
1. "themaposter-\n" = "themaposter-" (normal)
2. "delete" = "\ndelete" (normal)
3. ".*delete.*\n?" = "" (regex)


so what is ordinarily of 3 replacement?what is result?

Quote:

themaposter

or
Quote:

themaposterlink

or
Quote:

link


Top
 Profile  
Reply with quote  
 Post subject: Re: what is ordinarily of replacement?
PostPosted: November 28th, 2015, 1:15 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
They are applied in the order they were added (first added - first applied)

For these simple cases you can almost always make a replacement which is not dependent on other replacement so that the order won't matter.

You could use this forum to test: viewforum.php?f=17

Edit: in 2.23 changed sorting so that first added would always at the top. So the top ones are applied first, etc. The sorting was alphabetic which was a bit confusing.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Who is online

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