]> Cypherpunks repositories - gostls13.git/commit
regexp: add HasMeta and regexp.Expr().
authorRob Pike <r@golang.org>
Fri, 17 Dec 2010 00:55:26 +0000 (16:55 -0800)
committerRob Pike <r@golang.org>
Fri, 17 Dec 2010 00:55:26 +0000 (16:55 -0800)
commit5bd4094d2ec9cecf06e135604c6c21365fb9ea95
tree2fb90bd02d18171f6abb2aa18d67d79b68a218c9
parentbe45ba712bb2cae5ea73979ff89ef7fc19b563eb
regexp: add HasMeta and regexp.Expr().
The former is a boolean function to test whether a string
contains a regular expression metacharacter; the second
returns the string used to compile the regexp.

R=gri, rsc
CC=golang-dev
https://golang.org/cl/3728041
src/pkg/regexp/all_test.go
src/pkg/regexp/find_test.go
src/pkg/regexp/regexp.go