Changes
1-Changed regular expression matching logic. Now it will search for the last occurrence of the keyword.
2- Added a new test case to verify the same.
3- These changes are done regarding bug https://rt.cpan.org/Public/Bug/Display.html?id=100342
4-Currently its not decided with which functionality we will go ahead.