in reply to Re^2: Variable matching on a regex
in thread Variable matching on a regex
Is it possible to capture a non fixed number of variables from a "fixed" regex? (without using /g feature).
Sort of:
@m=(); 'abcdefghijklmnopqrstuvwxyz' =~ m[(?:(?=(..)(?{ push @m, $^N })).)+]; print for @m;; ab bc cd de ef fg gh hi ij jk kl lm mn no op pq qr rs st tu uv vw wx xy yz
|
|---|