Regexp succeeds if value contains any match of the regular expression. The regular expression may be a *regexp.Regexp or a string that is a valid regexp pattern.
(regex RE, value string)
| 105 | // The regular expression may be a *regexp.Regexp or a string that is a valid |
| 106 | // regexp pattern. |
| 107 | func Regexp[RE *regexp.Regexp | ~string](regex RE, value string) Comparison { |
| 108 | return gotest.Regexp(regex, value) |
| 109 | } |
| 110 | |
| 111 | var leadingTabs = regexp.MustCompile(`^\t+`) |
| 112 |
no outgoing calls