• 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
Grep pattern to split a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Grep pattern to split a string


  • Subject: Grep pattern to split a string
  • From: Bert Groeneveld via AppleScript-Users <email@hidden>
  • Date: Mon, 9 Sep 2019 14:02:17 +0200

Is it possible to split a string on a grep pattern of 3 digits?

For example:

set myString_to_split to "Blue123Green461orange998White551Red"
set AppleScript's text item delimiters to "???" -- What can I put here to split
the string on any pattern of 3 digits, so that only a list of colors is left?

Thanks in advance for any help.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Grep pattern to split a string
      • From: Shane Stanley via AppleScript-Users <email@hidden>
  • Prev by Date: [ANN]Piyomaru choose location script Library
  • Next by Date: Re: Grep pattern to split a string
  • Previous by thread: [ANN]Piyomaru choose location script Library
  • Next by thread: Re: Grep pattern to split a string
  • Index(es):
    • Date
    • Thread