• 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
satimage: how to change using regexp, returning the whole string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

satimage: how to change using regexp, returning the whole string


  • Subject: satimage: how to change using regexp, returning the whole string
  • From: Tim Bates <email@hidden>
  • Date: Thu, 14 Jul 2005 16:53:49 +1000

hi,
Using satimage extension for regexp, what i want to do is find all occurences of
a pattern past a certain startpoint, and change these. I can find all occurences
past a certain point (here's a tiny example to be easy to read, which doesn't
have the all occurences flag set)

set txt to change "x" into "X" in "123x456" starting at 3 with regexp
but, txt is now set to "X456", in other words, only the string past "starting at"
is returned.

Question: how do i get the whole string, with the change?, i.e.

   "123X456"

tim
This Message is intended for the addressee named and may contain
confidential information.  If you are not the intended recipient, please
delete it and notify the sender.  Views expressed in this message are those
of the individual sender and are not necessarily the views
of The Macquarie Centre for Cognitive Science.
 _______________________________________________
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: satimage: how to change using regexp, returning the whole string
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Tiger problem with menu scripts and Mail 2.0
  • Next by Date: Re: Scripting mail create a mailbox in a mailbox (folder)
  • Previous by thread: Re: 10.4.2 does not correct some found bugs Where to report them ?
  • Next by thread: Re: satimage: how to change using regexp, returning the whole string
  • Index(es):
    • Date
    • Thread