Documentation
¶
Overview ¶
Package deregexp converts a regexp to an expression with substring matches. This expression does not express exactly the same as the regexp, but a superset. It can be used for a cheap first pass filter, or for index lookups.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Longest ¶ added in v1.1.0
Longest returns the longest literal string that must be in an input to have a chance of matching the regexp. Can be used for cheap prefiltering. An error will only be returned iff the given regexp is invalid. The returned string might end in truncated UTF-8 characters.
Types ¶
type AndNode ¶
AndNode expresses a set of words and OrNodes that must all match for this node to match.
Click to show internal directories.
Click to hide internal directories.
