Compiled pattern with metadata
Constructors
compile_literal(source :
String) : self
Create pattern from literal string
Sourcecompile_regex(source :
String, unicode :
Bool = true, ignore_case :
Bool = false) : self
Create pattern from regex string
Sourcenew(literal :
Bool, source :
String, hir : ::
Regex::Syntax::Hir::Hir |
Nil = nil, bytes :
Bytes |
Nil = nil)
SourceInstance methods
check_for_greedy_all
Check for problematic patterns like greedy .* or .+
Sourcepriority
Calculate priority/complexity for disambiguation
Source