On Apr 25, 2022, at 08:42, samar <arne...@bluewin.ch> wrote:
Hi all
--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/b068a68d-28c7-44af-8994-7c3424ed0befn%40googlegroups.com.
On Apr 25, 2022, at 8:42 AM, samar <arne...@bluewin.ch> wrote:
Hi all
--
This sounds like a case of the Longest repeated substring problem. Regular expressions are not the right tool for the job, unfortunately.
There’s an online demo that might do what you need.
If you want to find all long repeated substrings, you can take an iterative approach: find the longest, remove the duplicates from the source text, and again find the longest.
Hope this helps,
-sam