I don't believe there are any purely regular solutions.
Best approximation I can think of is a condition that inspects p[0] and p[-1]. You'll need to ensure one char of context is always around though.
On 13-05-06 07:58 PM, Zach Levow wrote:
Hi all, We're attempting to port a large collection of PCRE patterns into Ragel. Most of the patterns are very straightforward, but a number of them use the \b directive (zero-width, non-word char followed by word char or vise-versa). For example "my.*\btest" should match "my first test", but *not* "my shortest". I'm sure we could handle this on a case-by-case basis, but I was wondering if anyone has an easy conversion. Thanks in advance! -Zach _______________________________________________ ragel-users mailing list ragel-users@complang.org http://www.complang.org/mailman/listinfo/ragel-users
_______________________________________________ ragel-users mailing list ragel-users@complang.org http://www.complang.org/mailman/listinfo/ragel-users