[a-z]+ so this will match all the lower case letters in the first name
The ‘.’ just adds one more character, and isn’t needed." - but here wouldn't it match the presumed space character between First and Last name? ... So why then can it successfully match the space character as demanded by the regular expression? Hasn't it been "used up" by the period? On Tuesday, October 10, 2023 at 2:41:42 PM UTC-7 Bruce Van Allen wrote: > The ‘+’ is quantifying a character class '[a-z]’. > > ‘[a-z]+’ (without the quotes) means one or more characters in the range > ‘a’ to ‘z’. > > The ‘.’ just adds one more character, and isn’t needed. > > And Tim is correct that there’s no fourth capture, so the ‘\4' is > meaningless. > > — Bruce > > _bruce__van_allen__santa_cruz_ca_ > > > > > > > On Oct 10, 2023, at 1:09 PM, Tim A <timaa...@gmail.com> wrote: > > > > Find: ([A-Z])([a-z]+.) ([A-Z][a-z]+.) > > Replace: \1\3\4 > > Why the "+."? Isn't the space between first and last name all that is > needed? > > And what is \4 mean with only three captures? > > > > > > On Monday, October 9, 2023 at 12:10:04 PM UTC-7 Benjamin Irwin wrote: > > That's cool but I had to move one of the periods inside the ")" as > follows. > > > > Find: ([A-Z])([a-z]+.) ([A-Z][a-z]+.) > > > > Replace: \1\3\4 > > > > On Monday, October 9, 2023 at 10:46:48 AM UTC-4 Kjetil Rå Hauge wrote: > > Try this: > > - Click Case sensitive and Grep > > - Find: "([A-Z])([a-z]+.) ([A-Z][a-z]+)." > > - Replace: "\1\3\4 " > > ________________________________________ > > From: bbe...@googlegroups.com <bbe...@googlegroups.com> on behalf of > Bill Walker <bwa...@cleanair.com> > > Sent: 09 October 2023 04:32 > > To: BBEdit Talk > > Subject: Change First Name SPACE Last Name to First Initial Last Name > > > > Example: Change John Doe to JDoe > > > > -- > > > > -- > > This is the BBEdit Talk public discussion group. If you have a feature > request or need technical support, please email "sup...@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+un...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/bbedit/062bc74b-312b-4267-a828-52c4a081d87an%40googlegroups.com > . > > -- 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/a2d18cda-37cc-4d5f-a908-6326e1c43d00n%40googlegroups.com.