
ichi
User
Nov 13, 2009, 6:58 AM
Post #3 of 3
(1611 views)
|
|
Re: [perlwatcher] Match the last but one pattern in a given string
[In reply to]
|
Can't Post
|
|
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, Arun i don't see any connection here. is "Hyderabad" a constant string? after the last "Hyderabad" is found, then what is the final output?
|