Re: [pcre-dev] need help with a particular regex

Pàgina inicial
Delete this message
Autor: Sheri
Data:  
A: pcre-dev
Assumpte: Re: [pcre-dev] need help with a particular regex
Nuno Lopes wrote:
> My question is if there is some way to express this with PCRE? (does the new
> (*COMMIT) and the like features help here?)
>
>

Could you not be more restrictive than dots for matching function names,
e.g., "\w+" ?

If you put (*COMMIT)s after the "at line" following each ".+?", it works
(unless you remove the dollar sign from the end of the pattern, in
which case it matches the first two lines.)

Possibly a useful way to restrict ungreedy dotall dots to match only up
to the first occurrence of whatever is meant to follow them.

Regards,
Sheri