If you open up the Find/Replace and use this grep in the find box: ^(\w)
and this replacement in the Replace box: \U\1\E and then you can do Replace All If you want to include the start of sentences that may have spaces in front of them (like the classic indent for a paragraph), you can use: ^(\s*)(\w) and: \1\U\2\E Hope that answers your question. As to terminology, I think you're right to use "line" where the editor would show a line number to the left in the gutter, and "sentence" for a line that corresponds to grammar, e.g. a starting capital letter all the way to a fullstop. Regards, iain On Friday, 29 October 2021 at 08:01:59 UTC+9 Nosadge 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 "[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/032fe24b-7e47-49eb-aa39-20cc1ba6365bn%40googlegroups.com.
