Change the .* in your string to [^.]*
(And you don't need the square brackets around \. )
So:
from [A-Z][a-zA-Z][^.]*\.
…which really means:
from followed by a space
a single capital letter, not including diacriticals/accents
a single letter of any case, not including diacriticals/accents
any number (including zero) of non-period characters (which may
include other punctuation, spaces, line breaks, etc.)
a period
Does that work, or do you need to be more specific?
Rick Gordon
--------------------
On May 18, 2018 at 1:33:08 AM [-0700],
Matthew London wrote in an email entitled
"Re: Another Newbie GREP help request...":
I managed to figure out that the following would give me everything
that had "from" followed by a capital letter, with a period followed
by a space at the end:
from [A-Z][a-zA-Z].*[\. ]
But that also gives me all the sentences in the line which
preceded the one I need!
How would I strip out all the sentences that precede the one I need?
___________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________
WWW: http://www.shelterpub.com
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.