• 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: Extract words.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Extract words.


  • Subject: RE: Extract words.
  • From: "Ruby Madraswala" <email@hidden>
  • Date: Tue, 12 Oct 2004 10:10:31 -0400
  • Thread-topic: Extract words.

 -----Original Message-----

At 10:27 -0400 10/08/2004, Ruby Madraswala wrought:

>Just needs some guidance to write a script to extract all words between
>"\" and "|"  from a text file.
>
>Example:
>\According| to knowledge base papers, they will \work| if you bugger
>around with the parts a little and open them \manually|.
>
>According
>Work
>Manually
______________________________________________________________________

Hello Ruby,

I'd use the Satimage osax and regular expressions:

http://www.satimage.fr/software/en/downloads_osaxen.html

  set txt to "\\According| to knowledge base papers, they will \\work| if
you bugger around with the parts a little and open them \\manually|."

  try
    set findWords to find text "\\\\([^|]+)\\|" in txt using "\\1" with
regexp, all occurrences and string result without case sensitive
  on error
    set findWords to false
  end try


Best Regards,

Chris




 _______________________________________________
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

  • Prev by Date: Re: Mozilla/Firefox dictionary
  • Next by Date: Re: Mozilla/Firefox dictionary
  • Previous by thread: Re: Extract words.
  • Next by thread: Re: OT? Keyboard function key codes
  • Index(es):
    • Date
    • Thread