in reply to Re^2: Split without removing characters
in thread Split without removing characters
e.g.
my $sepstring = '7c6xb1%$#!@#$!@'; my $foo = "Hello WorldFoo BarPerl MonksSlash Dot"; for ($foo) { s/([a-z])([A-Z])/$1$sepstring$2/g; for (split /\Q$sepstring\E/ ) { print "$_ \n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Split without removing characters
by cmeyer (Pilgrim) on Jun 20, 2005 at 18:35 UTC |