That ‘.’ doesn’t match the space character between first and last because that space character is in the pattern.
([A-Z])([a-z]+.) ([A-Z][a-z]+.)
^
So that ‘.’ would just be matching the last character of the first name.
HTH
— Bruce
_bruce__van_allen__santa_cruz_ca_
On Oct 10, 2023, at 4:20 PM, Tim A <
timaa...@gmail.com> wrote:
([AZ])([az]+.) ([AZ][az]+.)
[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 would match the presumed space character between First and Last name
... So why does then 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:
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/8d7a1a3c-938b-4989-9ea0-48dfc4f65dd9n%40googlegroups.com.