On 27 Feb 2020, at 21:43, 'anotherhoward' via BBEdit Talk <bbedit@googlegroups.com> 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 "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/71966DF5-1088-4F3F-83A1-28E446AAE77F%40gmail.com.