in reply to Regex Matching Oddity
I kinda expected this would work:(m|^rs://([-\w]+)|g, m|\G\.([-\w]+)|g)update: even though this does:m|^rs://([-\w]+)|, m|\.([-\w]+)|gWhy isn't the pos() set?$ perl -lwe'print join" > ",m#(?:^rs://|\.)([-\w]+)#g for qw(rs://b.c rs://d.e.f rs://g.h.i.j.k)' b > c d > e > f g > h > i > j > k $
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regex Matching Oddity
by AidanLee (Chaplain) on Jun 27, 2001 at 22:07 UTC |