pombreda / re2

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

Syntax doesn't mention $1 is supported #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Read http://code.google.com/p/re2/wiki/Syntax
2. See no mention of $1

What is the expected output? What do you see instead?
$1 should be documented as a way to get capture groups

What version of the product are you using? On what operating system?
http://code.google.com/p/re2/wiki/Syntax

Please provide any additional information below.
NOTE: If you have a suggested patch, please see
http://code.google.com/p/re2/wiki/Contribute
for information about sending it in for review.  Thanks.

Original issue reported on code.google.com by ptar...@gmail.com on 27 Nov 2012 at 7:10

GoogleCodeExporter commented 9 years ago
$1 is not supported regular expression syntax.

Original comment by rsc@golang.org on 27 Nov 2012 at 3:19

GoogleCodeExporter commented 9 years ago
When you are using the capture pattern it is. You explicitly say that \1 
doesn't work so I got sad about capture patterns not working, but then I found 
out $1 does work.

Original comment by ptar...@gmail.com on 27 Nov 2012 at 6:24