Regex #
Main api for Regex
Regex.build: build a Regex from the given patternRegex.captures: searches for the first match of the regexRegex.all_captures: searches all successive non-overlapping matches of the regex
Instances For
@[instance_reducible]
def Regex.build (s : String) (flavor : Syntax.Flavor := default) (flags : Syntax.Flags := default) (config : Compiler.Config := default) (extended : Grammar.ExtendedKind := Grammar.ExtendedKind.None) :
Build a Regex from the given pattern.
Instances For
This routine searches for the first match of this regex in the haystack given, returns an array of log msgs, the overall match and the matches of each capture group
Instances For
Returns an array of log msgs and all successive non-overlapping matches in the given haystack.
Instances For
This routine searches for the first match of this regex in the haystack given, and if found, returns not only the overall match but also the matches of each capture group in the regex. If no match is found, then None is returned.
Instances For
Returns all successive non-overlapping matches in the given haystack.