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

What is the order of applied replacements?
http://leecher.themasoftware.com/forum/viewtopic.php?f=4&t=6179
Page 1 of 1

Author:  vandt [ November 27th, 2015, 1:49 pm ]
Post subject:  What is the order of applied replacements?

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

Author:  Freddy [ November 28th, 2015, 1:15 am ]
Post subject:  Re: what is ordinarily of replacement?

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.

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