Fixed a bug where it could sometimes search for the same required string multiple times.
2015.6.10
Not secure
Hg issue 141: Crash on a certain partial match
It didn't check the result of 'try_match' correctly in certain places (the status returned isn't limited to success and failure).
2015.6.9
Not secure
Hg issue 140: Replace with REVERSE and groups has unexpected behavior
subx needed to add the template items to the list in reverse order when searching backwards because the list will be reversed after completion.
2015.6.4
Not secure
Hg issue 98: regex module is not thread safe because of _cache
Now iterates over a snapshot of the cache keys in case the dict resizes.
2015.6.2
Not secure
Hg issue 139: Regular expression with multiple wildcards where first should match empty string does not always work
The problem was caused by a negative-character in the firstset, eg "[^a]".
Fixed.
2015.5.28
Not secure
Hg issue 137: Posix character class :punct: does not seem to be supported
It _is_ supported.
Corrected Posix-style properties for 'alnum', 'digit', 'punct' and 'xdigit' which are different from that of Unicode. Now also available as \p[posix_alnum}, etc.
Hg issue 138: grapheme anchored search not working properly