Re: Another Newbie GREP help request...

2018-05-15 Thread Patrick Woolsey

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. 




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: 
--- 
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.


Re: Another Newbie GREP help request...

2018-05-15 Thread 'Holger Bartel' via BBEdit Talk
Hi, 

if I’m not mistaken you could use either

from [A-Z]+

Or 

from [[:upper:]]+

Not on a computer right now, so this is untested, but hopefully is correct and 
helps ;) 

As for books, maybe one of the O’Reilly pocket references, but I’m not sure 
about the plainer english…

Best,
Holger


> On 15 May 2018, at 5:15 AM, 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: 
> --- 
> 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.

-- 
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: 
--- 
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.