Nov 13, 2009, 6:58 AM
Post #3 of 3
Re: [perlwatcher] Match the last but one pattern in a given string
[In reply to]
my $str = "I am in Hyderabad where Hyderabad is in Andhra Pradesh with Hyderabad being the capital";
My question here is ... how do I match the last "Hyderabad" in the above given string?
Thanks in advance,
i don't see any connection here. is "Hyderabad" a constant string? after the last "Hyderabad" is found, then what is the final output?