Minor comment:

The search string

</span>(.+)\:

will find the longest match as it is "greedy". I think you might need

</span>(.+?)\:

The "?" makes it non-greedy.

Regards
Kaveh

On Wed, 10 May 2023 at 09:45, 'Holger Bartel' via BBEdit Talk <
[email protected]> wrote:

> Hi,
>
> Try the following Find pattern with Grep turned on:
>
> </span>(.+)\:
>
> with this Replace pattern:
>
> </span><strong>\1</strong>:
>
> Hope this helps,
> Holger
>
>
>
> On 10. May 2023, at 10:32, 'Andy Nickless' via BBEdit Talk <
> [email protected]> wrote:
>
> I'm just beginning to gently feel my way into grep at last, but I'm
> stumped here.
> I want to isolate a string such as:
> </span>The Cat that walked by himself:
> I can't find how to include EVERY eventuality between </span> and the
> colon at the end.
> I simply want to make whatever is between </span> and the colon, *bold*.
> So it would look like this:
> </span><strong>The Cat that walked by himself</strong>:
> Can you help please?
> Andy
>
> --
> 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/dd5ddf44-0107-42a9-84a1-9019bfc79f43n%40googlegroups.com
> <https://groups.google.com/d/msgid/bbedit/dd5ddf44-0107-42a9-84a1-9019bfc79f43n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> 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/10720E34-F5BF-40CB-A809-FA75EF135599%40googlemail.com
> <https://groups.google.com/d/msgid/bbedit/10720E34-F5BF-40CB-A809-FA75EF135599%40googlemail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies <http://rivervalley.io> ● Twitter
<https://twitter.com/rivervalley1000> ● LinkedIn
<https://www.linkedin.com/in/bazargankaveh/> ● ORCID
<https://orcid.org/0000-0002-1414-9098> ● @[email protected]
<https://mastodon.social/@kaveh1000>
*Accelerating the Communication of Research*

*
<https://www.linkedin.com/posts/bazargankaveh_ismte-innovation-award-recipient-kaveh-bazargan-activity-7039348552526921728-XAEB/?utm_source=share&utm_medium=member_desktop>
 [image:
https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/]
<https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/>*

-- 
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/CAJ2R9pi%2Bmursb7j835U12iERD9aeJdpjDETNUf-8J-UwTZaAFA%40mail.gmail.com.

Reply via email to