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"));
In reply to Re: splitting headache
by simon.proctor
in thread splitting headache
by Wibble
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |