• 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: Convert a string into a list without Delimiters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert a string into a list without Delimiters


  • Subject: Re: Convert a string into a list without Delimiters
  • From: email@hidden
  • Date: Fri, 9 Nov 2001 14:19:01 -0600

Greetings,

Another use for the RegEx Commands Osax.

----------------------------------------------------------------------
set theText to "Now is the time for all good men to come to the aid of their country."

set AppleScript's text item delimiters to {return}
set lst to text items of (REMatch theText pattern "....")
set AppleScript's text item delimiters to {""}
----------------------------------------------------------------------

0.025797 sec to parse a 6 K string OMM. Timed with the PrecisionTimer osax.


--
Best Regards,

Christopher Stone
______________________________
StoneWorks Computer Consulting
email@hidden


References: 
 >Re: Convert a string into a list without Delimiters (From: email@hidden (Michael Sullivan))

  • Prev by Date: Re: Group by pairs [was: QXP: ungrouping ?]
  • Next by Date: Archive ReTooled! & Password Protected Too!
  • Previous by thread: Re: Convert a string into a list without Delimiters
  • Next by thread: Re: Convert a string into a list without Delimiters
  • Index(es):
    • Date
    • Thread