Home | History | Annotate | Download | only in regexp

Lines Matching defs:QuoteMeta

578 // QuoteMeta returns a string that quotes all regular expression metacharacters
580 // the literal text. For example, QuoteMeta(`[foo]`) returns `\[foo\]`.
581 func QuoteMeta(s string) string {