• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PCRE / grep (was Re: Applescript-users Digest, Vol 2, Issue 443)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PCRE / grep (was Re: Applescript-users Digest, Vol 2, Issue 443)


  • Subject: Re: PCRE / grep (was Re: Applescript-users Digest, Vol 2, Issue 443)
  • From: "Gary (Lists)" <email@hidden>
  • Date: Tue, 05 Jul 2005 12:52:04 -0400

"doug rogers" wrote:

>> search txt for "^\\s*(.*?)\\s*,\\s*(.*?)\\s+([-0-9]+)\\s*$" with regex
>> and individual line matching
>
> Ha Ha Ha Ha ha...... :-)
>
>> They take a little bit of learning but it's totally worth it, and
>> there's loads of printed and online resources to help; not just
>> tutorials but scads of ready-to-use patterns
>
> Sources for these?

PCRE: Perl Compatible Regular Expressions

On OS X, to get started, use Terminal and:   man grep
(This _may_ not be PCRE, I don't know.)


If you use BBEdit in any "later" version or TextWrangler (BBEdit Lite) then
you have a "grep" or PCRE help file on your drive.  Choose 'TextWrangler
Help' (or BBEdit Help) from the Help menu.  There is an entire section on
using regular expressions.


Or Google:

<http://www.google.com/search?q=+PCRE+"regular+expressions"+grep>
--
Gary

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: PCRE / grep (was Re: Applescript-users Digest, Vol 2, Issue 443)
      • From: Adam Wuellner <email@hidden>
References: 
 >Re: Applescript-users Digest, Vol 2, Issue 443 (From: doug rogers <email@hidden>)

  • Prev by Date: Re: Applescript-users Digest, Vol 2, Issue 443
  • Next by Date: Re: PCRE / grep (was Re: Applescript-users Digest, Vol 2, Issue 443)
  • Previous by thread: Re: Applescript-users Digest, Vol 2, Issue 443
  • Next by thread: Re: PCRE / grep (was Re: Applescript-users Digest, Vol 2, Issue 443)
  • Index(es):
    • Date
    • Thread