(s []byte)
| 123 | } |
| 124 | |
| 125 | func (this *Regexp) Match(s []byte) bool { |
| 126 | if this.keywordsMap != nil { |
| 127 | var b = this.keywordsMap.Lookup(string(s), this.isCaseInsensitive) |
| 128 | if !b { |
| 129 | return false |
| 130 | } |
| 131 | if this.isStrict { |
| 132 | return true |
| 133 | } |
| 134 | } |
| 135 | return this.rawRegexp.Match(s) |
| 136 | } |
| 137 | |
| 138 | func (this *Regexp) FindStringSubmatch(s string) []string { |
| 139 | return this.rawRegexp.FindStringSubmatch(s) |