## captures (a.)..(..) zzzabcdefzzz y basic match (a.)..(..) zzzabcdefzzz /mob: / basic $0 (a.)..(..) zzzabcdefzzz /mob 0: / basic $1 (a.)..(..) zzzabcdefzzz /mob 1: / basic $2 (a(b(c))(d)) abcd y nested match (a(b(c))(d)) abcd /mob: / nested match (a(b(c))(d)) abcd /mob 0: / nested match (a(b(c))(d)) abcd /mob 0 0: / nested match (a(b(c))(d)) abcd /mob 0 0 0: / nested match (a(b(c))(d)) abcd /mob 0 1: / nested match ((\w+)+) abcd /mob: / nested match ((\w+)+) abcd /mob 0: / nested match ((\w+)+) abcd /mob 0 0 0: / nested match ((\w+)+) ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz /mob: / alt subpattern before group (a) [ (bc) (d) | .* (ef) ] .* (g) abcdefg /mob 1: / alt subpattern in group (a) [ (bc) (d) | .* (ef) ] .* (g) abcdefg /mob 2: / alt subpattern in group (a) [ (bc) (d) | .* (ef) ] .* (g) abcdefg /mob 3: / alt subpattern after group (a) [ (bc) (x) | .* (ef) ] .* (g) abcdefg /mob 1: / 2nd alt subpattern in group (a) [ (bc) (x) | .* (ef) ] .* (g) abcdefg /mob 3: / 2nd alt subpattern after group ( (.) )* abc /mob 0 1 0: / nested repeated captures [ (.) ]* abc /mob 0 1: / nested repeated captures ( [.] )* abc /mob 0 1: / nested repeated captures (.) (.) $7=(.) (.) $4=(.) abcdefg /mob 0: / numbered aliases $1 (.) (.) $7=(.) (.) $4=(.) abcdefg /mob 1: / numbered aliases $2 (.) (.) $7=(.) (.) $4=(.) abcdefg /mob 7: / numbered aliases $7 (.) (.) $7=(.) (.) $4=(.) abcdefg /mob 8: / numbered aliases $8 (.) (.) $7=(.) (.) $4=(.) abcdefg /mob 4: / numbered aliases $4 $1=[ (.) (.) (.) ] (.) abcdefg /mob 1: / perl5 numbered captures $1 $1=[ (.) (.) (.) ] (.) abcdefg /mob 2: / perl5 numbered captures $1 $1=[ (.) (.) (.) ] (.) abcdefg /mob 3: / perl5 numbered captures $1 $1=[ (.) (.) (.) ] (.) abcdefg /mob 4: / perl5 numbered captures $1 $1=[ (.) (.) (.) ] (.) abcdefg /mob 5: / perl5 numbered captures $1 # todo :pugs :s $=[\w+] \= $=[\S+] abc = 123 /mob: / named capture # todo :pugs :s $=[\w+] \= $=[\S+] abc = 123 /mob: <123 @ 7>/ named capture # todo :pugs :s (\w+) $=(\w+) (\w+) abc def ghi /mob: / mixing named and unnamed capture # todo :pugs :s (\w+) $=(\w+) (\w+) abc def ghi /mob 1: / mixing named and unnamed capture # todo :pugs [ \- ]? abc def ghi /mob 0: / multiple subrule captures in same scope # todo :pugs [(.)$0]+ bookkeeper y backreference # todo :pugs (\w+) <+ws> $0 hello hello y backreference at end of string # todo :pugs [(.)$0]+ bookkeeper /mob 0 0: / backref $1 # todo :pugs [(.)$0]+ bookkeeper /mob 0 1: / backref $1 # todo :pugs [(.)$0]+ bookkeeper /mob 0 2: / backref $1 # todo :pugs (.)*x 123x /mob: <123x @ 0>/ repeated dot capture $= 12ab34 /mob: / alias capture 12ab34 /mob: / alias capture ## vim: noexpandtab tabstop=4 shiftwidth=4