Assuming that the last word always consists of one capital letter, and then a series of lower case letters until the end of the string, you could do
my $foo = "siteConfigDelete"; my( $last ) = ( $foo =~ /([A-Z][a-z]+)$/ ); print "$last\n";
In reply to Re: regexps
by lestrrat
in thread Looking for a regex to match last capitalized word in string
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |