Please try this:

from [A-Z][a-zA-Z]+

with both the "Case sensitive" and "Grep" options enabled.

In summary, "from " will match these literal characters, while the first _character class_ [A-Z] will match a single capital letter, and the second _character class_ [a-zA-Z] modified by + will match 'at least one or more' capital and/or lowercase letters.

(NB: You may wish to fine-tune this pattern depending on what you want a "word" to consist of. :-)

As to grep references, I suggest you start with Chapter 8 "Searching with Grep" of the included PDF manual (available at any time via Help -> User Manual) and work from there.


Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc.             <http://www.barebones.com/>




On 5/14/18 at 11:15 PM, mlon...@gmail.com (Matthew London) wrote:

Hi,
Struggling to get my head around GREP...

I need to use Process Lines Containing function in BBEdit to find all lines that contain the word "from" followed by a space, followed by any word that begins with a capital letter

ie:   He is from California
but not
He is from his mother


PS.Grateful if someone can recommend a "GREP for non-programmers" written in plain(er) English so I dont have to bother you very helpful people here.
Thanks :-)


--
This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email
"supp...@barebones.com" 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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to