9 Aug
2007
9 Aug
'07
9:39 a.m.
Alan DeKok wrote:
Enrik Berkhan wrote:
This seems to work, variables are unset if they have an old value and no new value (no match at all or empty) or they are set/updated if they have a new value (match implied).
Hmm... on a regex match, all previous match information should be deleted. This prevents old matches from polluting the variables for the current match.
The current change does this.
I've only tested it using unlang: Isn't that just incredibly easy to use? :)
Yes :)
Just a patch for the existing code would be useful. Maybe after that, factor out the regex code into one place.
I've attached the patch that I used for testing. Enrik