Hi, if you only need to catch and replace duplicated words in a text in BBEdit, you can use this GREP search:
Find: \b(\w+) +\1\b Replace: \1 Cheers. El miércoles, 30 de octubre de 2024 a las 14:47:35 UTC+1, Patrick Woolsey escribió: > Also, for reference: > > > On Oct 30, 2024, at 02:21, ce gm <[email protected]> wrote: > > I tried the Process Duplicate Lines command in BBEdit, but it did not > remove duplicates of words within lines. > > That is as expected; BBEdit's line processing commands apply only to > hard-wrap delineated lines, not words or paragraphs, etc. > > > > Does anyone know if there is a way to get BBEdit to identify duplicate > words, then automatically delete one of them? > > Though BBEdit does not contain any commands explicitly designed for this > purpose, you may be able to accomplish the desired task (or at least a good > deal of it) using its search & replace capabilities per my prior post. > > > Regards, > > Patrick Woolsey > == > Bare Bones Software, Inc. <https://www.barebones.com/> > > > > > -- This is the BBEdit Talk public discussion group. If you have a feature request or believe that the application isn't working correctly, please email "[email protected]" rather than posting here. Follow @bbedit on Mastodon: <https://mastodon.social/@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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/bbedit/abcceeb0-8129-4808-ad00-3a9284c21afdn%40googlegroups.com.
