From: Colin P. A. <co...@co...> - 2007-02-04 11:11:38
|
>>>>> "Eric" == Eric Bezault <er...@go...> writes: Eric> I wrote the following test and it works: Eric> test_compile1 is -- Test feature 'compile'. local Eric> a_regexp: RX_PCRE_REGULAR_EXPRESSION do create a_regexp.make Eric> a_regexp.compile ("^[abc]*$") assert ("compiled1", Eric> a_regexp.is_compiled) assert ("recognizes1", Eric> a_regexp.recognizes ("aaabbbccc")) assert Eric> ("not_recognizes1", not a_regexp.recognizes Eric> ("aaabbbcccddd")) end Eric> So I don't know why it would not work for you. Strange. I shall have to investigate further. Eric> I think that would have to write a preparser that would Eric> translate XPath regular expressions into PCRE regular Eric> expressions. I don't think it can work, because the trick of using the UTF-8 byte representation will fail in these kind of tests. -- Colin Adams Preston Lancashire |