Textmate: regular expression to replace matches preserving case?
Fresh3 days ago
Mar 15, 20262782 viewsConfidence Score0%
0%
Problem
How can I use a single search / replace to replace all words with preserving the case of the first letter in this sentence:
Error Output
Towns are small cities. I live in a town.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Textmate: regular expression to replace matches preserving case?
Low Risk
→ (And uncheck ignore case in the dialog) = word boundary = non-capturing group = if captured group 1 then convert next character to uppercase
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix