http://qs321.pair.com?node_id=985255


in reply to regular expression

You can use this regex:
/(.*)(\1.*)/
The desired string is stored in $2.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ