Thank you both for your help. The GREP replacement works perfectly. (The Capitalize Lines approach does capitalise the first letter but also lowercases the rest of the words in a line.)

Sam

On 22.01.25 15:59, Watts Martin wrote:
Depending on what it is you’re doing, you may not need to use regular expressions for 
this at all. You can select the lines you want to capitalize (or Select All), and 
then use “Capitalize Lines” (seleect Text > Change Case > Capitalize Lines in 
the menu, or use the command palette).

On Jan 22, 2025, at 03:52, Samuel Arnet<[email protected]> wrote:

I need a GREP to find each lower case character at the beginning of a line and 
replace it with its uppercase counterpart.

So I search for

^([[:lower:]])

What do I write in the Replace field?

Thanks
Sam
--
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 
[email protected].
To view this discussion 
visithttps://groups.google.com/d/msgid/bbedit/d4cafcad-296a-43ac-885e-c4966ba3e7ab%40bluewin.ch.

--
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/78ab0598-acca-4a5d-b2f9-8f0d75990360%40bluewin.ch.

Reply via email to