lamuguo / re2

Automatically exported from code.google.com/p/re2
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Syntax page short on detail for \b #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/re2/wiki/Syntax describes the zero-width assertions \b 
and \B.

"\b  at word boundary (\w to left and \W to right or vice versa)"

Should this documentation be expanded to explain what happens at the start or 
end of a line/string?  E.g. the end is treated as \W.  It would be nice if this 
bit of re2's behaviour was documented.

Original issue reported on code.google.com by ralph.co...@gmail.com on 16 Dec 2010 at 12:56

GoogleCodeExporter commented 9 years ago
changeset:   51:68ed8c3185b0
tag:         tip
user:        Russ Cox <rsc@swtch.com>
date:        Sun Jan 30 13:41:05 2011 -0500
files:       doc/syntax.txt
description:
doc: be more precise about \b

R=rsc
CC=re2-dev
http://codereview.appspot.com/4119045

Original comment by rsc@swtch.com on 30 Jan 2011 at 6:41