I would like to thank everyone for their thoughtful comments. Because of 
them, I realize that what would work best for me are Sam's with a space 
replacing the "\t" in the replacement pattern and John's.

On Friday, February 28, 2020 at 11:01:01 AM UTC-5, John R M. Delacour wrote:
>
>
>
> On 27 Feb 2020, at 21:43, 'anotherhoward' via BBEdit Talk <
> [email protected] <javascript:>> wrote:
>
> I have a list of names in this format:
>
> B.J. Surhoff\surhob.01
> Bobby Bonilla\bonilbo01
>
> I want to extract the last names and separately extract what comes before 
> each last name 
> (which could be just the first name or two initials as in "B.J.") so that 
> I can later organize them this way:
>
> B.J.         Surhoff
> Bobby     Bobby
>
> I do not need the data after the slash.
>
> How can I use GREF (REGEX) to extract the last names and separately the 
> first/middle values?
>
>
> If you don’t need to script it,
>
> search for: (.+?) ([^ ]+?)\\.+
> Replace all with \1 \2
>
>
> JD
>
>

-- 
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/9f1b9c7b-c529-4cc6-8091-0a293b338a73%40googlegroups.com.

Reply via email to