go/src/regexp
Seth Hoenig 226aaf4267 regexp: add runnable example to regex.Split
The existing comment for regex.Split contains a plain text example,
while many of the other regex functions have runnable examples. This
change provides a runnable example for Split.

Change-Id: I5373f57f532fe843d7d0adcf4b513061ec797047
Reviewed-on: https://go-review.googlesource.com/14737
Reviewed-by: Andrew Gerrand <adg@golang.org>
Run-TryBot: Andrew Gerrand <adg@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2015-09-23 03:29:32 +00:00
..
syntax all: use "reports whether" in place of "returns true if(f)" 2015-03-18 15:14:06 +00:00
testdata regexp: trivial change in comments to update code.google.com link 2015-04-27 20:18:25 +00:00
all_test.go regexp: set b.cap[0] and b.cap[1] only when captures requested 2015-04-17 17:10:07 +00:00
backtrack.go regexp: set b.cap[0] and b.cap[1] only when captures requested 2015-04-17 17:10:07 +00:00
example_test.go regexp: add runnable example to regex.Split 2015-09-23 03:29:32 +00:00
exec.go regexp: port RE2's bitstate backtracker to the regexp package 2015-03-23 16:17:42 +00:00
exec2_test.go
exec_test.go regexp: small correction to test comment 2015-06-14 17:09:13 +00:00
find_test.go
onepass.go
onepass_test.go
regexp.go regexp: suggest go doc, not godoc 2015-06-01 20:16:31 +00:00