in reply to Re: How to start regexp from a X position
in thread How to start regexp from a X position
Thank!! great!!!, you open my mind, really i was knew that the solution is around that but i couldn't understand the documentation, perfect!!!!.
One last question, how works the modifier c and \G in a regexp
Could i do something like this:
my $x = "<0>"; for (qw {<1> <2> <3>}) { if ($x =~ /<\d+>/gc) { $x =~ s/\G(<\d+>)/$1$_/; } } say $x;
Really thank JavaFan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to start regexp from a X position
by ikegami (Patriarch) on Oct 07, 2008 at 12:33 UTC | |
by pkt (Initiate) on Oct 07, 2008 at 12:57 UTC | |
|
Re^3: How to start regexp from a X position
by JavaFan (Canon) on Oct 07, 2008 at 12:44 UTC | |
by pkt (Initiate) on Oct 07, 2008 at 13:01 UTC |