[TRE-general] Assertion test
Ville Laurikari
ville at laurikari.net
Wed Feb 28 15:15:50 EET 2007
On Tue, Feb 27, 2007 at 11:39:55PM +0200, Shmuel Zeigerman wrote:
> TRE 0.7.5:
> test_comp("\\<.", REG_EXTENDED, 0); /* test 1 */
> test_exec(";xaa", 0, REG_OK, 1, 2, END); /* test 2 */
>
> The second test fails because the leading semicolon is matched.
> Is this the intended behavior?
I checked the code, and the \< assertion always matches at the
beginning of the string. That's a bug, \< should match the beginning
of the string only if the first character is a word character.
It was easy to fix so this will be fixed in the next release.
--
http://www.iki.fi/vl/
More information about the TRE-general
mailing list