in reply to splitting headache
There's probably some stuff in there I don't need but I'm not a regex master by any means :)print "$_\n" foreach (split(m/\G(([^\.]+)\.\2)|(?:(?!\2\.)\.)/g, "Pugh +.Pugh.Barney.McGrew.Cuthbert.Dibble.Grub"));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: splitting headache
by Wibble (Beadle) on Feb 26, 2002 at 14:36 UTC |