my $x = "<0>"; my $pos = 0; for (qw {<1> <2> <3>}) { pos($x) = $pos; $x =~ s/\G(<\d+>)/$1$_/; $pos += length $1; } say $x; __END__ <0><1><2><3>
In reply to Re: How to start regexp from a X position
by JavaFan
in thread How to start regexp from a X position
by pkt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |