/ (.+) # match one or more characters (??{ quotemeta reverse $+ }) # match the reverse of what was matched /xs # Note: doesn't match empty string or single character string