core :: Match :: subs
var re = "c (d e+) f".to_re var match = "a b c d eee f g".search(re) assert match.subs.length == 1 assert match.subs.first.to_s == "d eee"
# Parenthesized subexpressions in this match # # ~~~ # var re = "c (d e+) f".to_re # var match = "a b c d eee f g".search(re) # assert match.subs.length == 1 # assert match.subs.first.to_s == "d eee" # ~~~ var subs = new Array[nullable Match] is lazy