On Thu, 11 Nov 2010 12:21:57 -0500 Glenn Fowler wrote:
> On Sun, 31 Oct 2010 19:25:44 +0100 =?KOI8-R?B?z8zYx8Egy9LZ1sHOz9fTy8HR?=
> wrote:
> > Which perl pattern properties, i.e. \p{prop}, do the ksh ~(P) regex
> > support? I need a list.
> you can look at the regression tests transcribed from the pcre tests
> src/cmd/re/pcre-?.dat
> from what I remember the \[alpha] matching chars and (?...) are supported
> the forms with perl callbacks are not supported
and one more difference (among probably more)
ast regex perl expressions implement leftmost-longest matching
and that is only modified by explicit perl "cut" operators
which I think are some form of (?...)
I implemented it and forgot it because I never use it
pcre implements what it implements
it lets implementation efficiency override general rules
this basically means that only the pcre backtracking implementation,
with explicit prune points in the backtrack code, can implement real
pcre matching
the ast implementation goes as far as it can using a completetly different
matching engine
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users