Hi, Bob, :)

Thanks for the detailed response!  I figured I was on the right path,
but confirmation greatly appreciated. :)

On Mon, 17 Sep 2001, Bob Showalter wrote:

> Now, can you tell why '~' is matched by
>
>    /(?:^|[^~])~$/

Because the '(?:re1|re2)' is a zero-length, non-capturing anchor that
matches either '^' (beginning of string), or '[^~]', which indicates
any character other than tilde.  If I understand aright, this pattern
would match "a", "a~" or "aa~" but not "a~~".  That sound right?

---Jason


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to