Find "^(.)" and replace with "\U\1". Make sure Grep is checked in the 
find/replace dialog. The ^ matches the start of a line so the . matches the 
first character, surrounded by parentheses so we can refer to it in the 
replacement pattern. The replacement uses \U to make it uppercase.

[fletcher]


> On Oct 28, 2021, at 3:10 PM, Nosadge <rjsuh...@gmail.com> wrote:
> 
> Hello,
> 
> Does anyone know a command/script/grep to make sure the first letter of every 
> line is capitalized?
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit <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 bbedit+unsubscr...@googlegroups.com 
> <mailto:bbedit+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/2ac9fbb2-20da-46d9-9b1d-8716fff9bdd1n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/bbedit/2ac9fbb2-20da-46d9-9b1d-8716fff9bdd1n%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 "supp...@barebones.com" 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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/5BEE56AA-F01E-4DD2-B8BC-01C9A2FDC485%40cumuli.com.

Reply via email to