- Index
- »
- axon
- »
- func:reGroups
def
func:reGroups
reGroups(regex, s)
Return a list of the substrings captured by matching the given regular operation against s
. Return null if no matches. The first item in the list is the entire match, and each additional item is matched to ()
arguments in the regex pattern. See AxonUsage.
Examples:
re: r"(RTU|AHU)-(\d+)" reGroups(re, "AHU") >> null reGroups(re, "AHU-7") >> ["AHU-7", "AHU", "7"]