[pcre-dev] [Bug 2614] Need a feature like mirrored backrefer…

Góra strony
Delete this message
Autor: admin
Data:  
Dla: pcre-dev
Temat: [pcre-dev] [Bug 2614] Need a feature like mirrored backreference (feature request)
https://bugs.exim.org/show_bug.cgi?id=2614

--- Comment #2 from Philip Hazel <ph10@???> ---
This pattern matches palindromes (ignoring punctuation):

/^\W*+(?:((.)\W*+(?1)\W*+\2|)|((.)\W*+(?3)\W*+\4|\W*+.\W*+))\W*+$/i

I don't have offhand a pattern for html tags, but it should be straightforward.
Perhaps something like this:

"<([^>]+)>.*?</\1>"

--
You are receiving this mail because:
You are on the CC list for the bug.