luxe: regex
RegexInfo
Section titled “RegexInfo”import "luxe: regex" for RegexInfoA regular expression result, containing one or more matches
RegexInfo.matched
Section titled “RegexInfo.matched”RegexInfo.matched : BoolTrue if there was any match
RegexInfo.match
Section titled “RegexInfo.match”RegexInfo.match : ListReturns the match results, a List of
RegexMatch. Only valid ifmatchedis true
RegexInfo [index : Num] : RegexMatchConvenience to access a specific match by index
RegexMatch
Section titled “RegexMatch”import "luxe: regex" for RegexMatchA single match in a regular expression result.
RegexMatch.subcount
Section titled “RegexMatch.subcount”RegexMatch.subcount : NumNumber of sub matches (groups), not including 0 which is the full match
RegexMatch.string
Section titled “RegexMatch.string”RegexMatch.string : StringThe matched string
RegexMatch.offset
Section titled “RegexMatch.offset”RegexMatch.offset : NumThe offset of the match in the original string
RegexMatch.count
Section titled “RegexMatch.count”RegexMatch.count : NumThe length of the match string
RegexMatch.index
Section titled “RegexMatch.index”RegexMatch.index : NumIndex of this match in the match results
RegexMatch [index : Num] : RegexSubMatchAccess to a specific group/sub match by index. 0 is the full match, groups are 1-indexed
RegexSubMatch
Section titled “RegexSubMatch”import "luxe: regex" for RegexSubMatchA single group/sub match in a regular expression match.
RegexSubMatch.count
Section titled “RegexSubMatch.count”RegexSubMatch.count : NumThe length of the sub/group
RegexSubMatch.offset
Section titled “RegexSubMatch.offset”RegexSubMatch.offset : NumThe offset of the sub/group in the original match
RegexSubMatch.string
Section titled “RegexSubMatch.string”RegexSubMatch.string : StringThe string of the sub/group
RegexSubMatch.index
Section titled “RegexSubMatch.index”RegexSubMatch.index : NumThe index of this sub/group in the match
RegexSubMatch index : Num
Section titled “RegexSubMatch index : Num”RegexSubMatch [index : Num] : AnyReturns info about this sub match by index. 0 returns
count, 1 returnsoffset, 2 returnsstring