0

I want to filter a data frame by words that are reversed in the middle, I want these words for example:

abba abcddcba

Is there any regex or anything that can help me with this?

Update

It is impossible it seems: How to check that a string is a palindrome using regular expressions?

Ali Molaei
  • 396
  • 2
  • 13
  • 1
    What if you have an odd number of charaters? e.g. abcba – Jeremy Jul 16 '19 at 21:36
  • I think the middle char should be ignored, but currently I will apperisiate a regex that works with even characters only too – Ali Molaei Jul 17 '19 at 07:12
  • 1
    Why would you need regex? simply size and find middle point and string unstring in a loop – thebluephantom Jul 17 '19 at 16:38
  • 1
    Probably not possible with Regex: https://stackoverflow.com/questions/233243/how-to-check-that-a-string-is-a-palindrome-using-regular-expressions – Jeremy Jul 17 '19 at 19:05

0 Answers0