http://qs1969.pair.com?node_id=441160

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks,

Please help me the code. I am having the string = "abcdegedfc". Here, i have to find the palindrome from the string and removed the remainder text. This code has to performed only in regular expression i want this code output in one line expression.
Thanks in Advance.