• 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: Invisible Char. - TextCommand
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invisible Char. - TextCommand


  • Subject: Re: Invisible Char. - TextCommand
  • From: Emmanuel <email@hidden>
  • Date: Fri, 8 Jul 2005 18:06:10 +0200

At 4:33 PM +0100 7/8/05, has wrote:

Michael Ghilissen wrote:

I have a script that pulls a xml page, which I am parsing using regex in TextCommands to extract the text part of it:

set theResult to find text "<title>([^<]*)</title>([^<]*)<link>([^<]*)</link>([^<]*)<description>([^<]*)</description>" in theText using {"\\n\\1\\n\\5\\n\\n"} regexpflag {"EXTENDED"} with regexp, all occurrences and string result

That's Satimage's 'find text' command. Here's the equivalent in TextCommands:

For those who don't know, Satimage osax has "find text" and "change", which work on ASCII, but Smile has "ufind text" and "uchange", which work on Unicode (UTF-16 as well as UTF-8.)


Emmanuel
_______________________________________________
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


References: 
 >Re: Invisible Char. - TextCommand (From: has <email@hidden>)

  • Prev by Date: Re: AppleScript error, overflow.
  • Next by Date: Server change from PC to Mac.
  • Previous by thread: Re: Invisible Char. - TextCommand
  • Next by thread: Gui Scripting V/S Automation tools
  • Index(es):
    • Date
    • Thread