The grep experts here are always impressive.  If they can't get it done with regex, a JS solution can.

On Jan 26, 2024, at 05:49, Victoria Bampton <[email protected]> wrote:

There's clearly lots of experience here... can anyone tell me if this is possible to do a find/replace GREP?

Links like those following are spread throughout a series of documents. I need to change the bit after the hash (e.g., #sub_InstallingLightroom) to remove the chunk before the underscore, put a hyphen before each uppercase character, and change the uppercase to lowercase (e.g., it becomes #installing-lightroom). That could be multiple finds/replacements, as I can deal with some of it, but I'm getting stuck on targeting and transforming those uppercase characters. Is it doable? Any bright ideas would be greatly appreciated!

<a href="">Installing Lightroom</a>
<a href="">Multiple Computers</a>
 <a href="">Keeping Lightroom Updated</a>
<a href="">Managing Folders in Lightroom and on the Hard Drive</a>
<a href="">Changing the Folder Structure</a>

--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" 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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/f3743619-5c95-4161-8107-b81affbdd6dan%40googlegroups.com.

--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" 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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/2823F0D0-614E-41CD-B8F0-7D7748A22F1E%40gmail.com.

Reply via email to