Use Bbedit to add a suffix to a repeated text pattern

21 views
Skip to first unread message

Phil Eldridge

unread,
Apr 2, 2025, 11:32:48 AMApr 2
to BBEdit Talk
Hi all,

I'm pretty new to Bbedit, so hoping you can help guide me - I'm looking for a way to add a regular suffix to any instances of a repeated pattern of text:

e.g. each occurrence of "V%%%%", where %%%% could be any 4-digit numerical value, has the suffix "_NEW" added. 

Any guidance gratefully received! Thanks.

David G Wagner

unread,
Apr 2, 2025, 11:56:08 AMApr 2
to BBEdit Talk
Find:       (V\d{4})
Replace:  \1_NEW
 
You do not state if there is carriage return or other data that could be associated.

Wags ;)

WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391

--
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 "sup...@barebones.com" 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 bbedit+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bbedit/bee2998a-1893-434b-959b-06cf6fc574d6n%40googlegroups.com.
 
Reply all
Reply to author
Forward
0 new messages