This looks for a capital letter followed by at least one lowercase letter at the end of the string, nice and straight-forward really :-)my $str = "siteConfigView"; my($last_word) = $str =~ /([A-Z][a-z]+)$/; print $last_word, $/;
broquaint
In reply to Re: regexps
by broquaint
in thread Looking for a regex to match last capitalized word in string
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |