]> Cypherpunks repositories - gostls13.git/commit
regexp: allow substitutions in Replace, ReplaceString
authorRuss Cox <rsc@golang.org>
Wed, 8 Feb 2012 04:46:47 +0000 (23:46 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 8 Feb 2012 04:46:47 +0000 (23:46 -0500)
commit7201ba2171a9b15d3de3f705335d37afc7e7c85a
tree53f165486da256a929f4bf793b6f36a46332f5d3
parent1d8250c8b0987bd67e5253803e50bbd7997a3d23
regexp: allow substitutions in Replace, ReplaceString
Add Expand, ExpandString for access to the substitution functionality.

Fixes #2736.

R=r, bradfitz, r, rogpeppe, n13m3y3r
CC=golang-dev
https://golang.org/cl/5638046
src/pkg/regexp/all_test.go
src/pkg/regexp/regexp.go