]> Cypherpunks repositories - gostls13.git/commit
regexp: examples for Regexp.Expand and Regexp.ExpandString functions
authorMatej Baćo <matejbaco@gmail.com>
Mon, 28 Aug 2017 10:41:27 +0000 (12:41 +0200)
committerIan Lance Taylor <iant@golang.org>
Mon, 28 Aug 2017 15:34:19 +0000 (15:34 +0000)
commit1fe1512f50585d461dd9f41d8b373da5ed66c99b
treeb75de043b5ad03a6abd068e80d6274c478ff6234
parentc195deb48cf09970c6bb77fad96926e0af102dcf
regexp: examples for Regexp.Expand and Regexp.ExpandString functions

Current documentation lacks simple examples for functions Regexp.Expand
and Regexp.ExpandString whose usage is unclear from description alone.
This commit adds examples that demonstrate usage in practical way.

Fixes #21649

Change-Id: I7b2c06c8ab747f69a6578f0595bf0f3c742ac479
Reviewed-on: https://go-review.googlesource.com/59470
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/regexp/example_test.go