Rhandom has asked for the wisdom of the Perl Monks concerning the following question:
perl -e '$_ = "a"; while (m/(\G|^)(a)/g) {print "[$2]\n";}'
perl -e '$_ = "a"; while (m/(\G)(a)/g) {print "[$2]\n";}'
Edit: chipmunk 2001-05-15
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex (\G) vs. (^\G)
by chipmunk (Parson) on May 15, 2001 at 20:24 UTC | |
by Rhandom (Curate) on May 15, 2001 at 20:31 UTC | |
|
Re (tilly) 1: regex (\G) vs. (^\G)
by tilly (Archbishop) on May 15, 2001 at 20:18 UTC | |
by Rhandom (Curate) on May 15, 2001 at 20:24 UTC | |
|
Re: regex (\G) vs. (^\G)
by Rhandom (Curate) on May 15, 2001 at 20:02 UTC |