in reply to Finding lowercase letters next to uppercase letters
Update: Ok, it is slower, but interesting nonetheless and still maybe worthwhile to use the [:lower:] and [:upper:] character classes even on blakem's answer.my $str = "AbcDefGhiJkl"; $str = join "::", split(/(?<=[[:lower:]])(?=[[:upper:]])/, $str); print "$str\n";
|
|---|