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

Resolved: Invisible Char. - TextCommand


  • Subject: Resolved: Invisible Char. - TextCommand
  • From: Michael Ghilissen <email@hidden>
  • Date: Fri, 8 Jul 2005 10:26:46 -0400

A coercion back to 'string' resolved the problem.

Michael


On Jul 8, 2005, at 9:50 AM, Michael Ghilissen wrote:

Hi,

I am getting coo-coo here!

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

tell application "TextCommands"
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

The returned text is 'interlaced' with non-visible characters between each letter, which I can reveal in textWrangler as inverted question-marks and in Word as ΓΏ.

In TextWrangler, this character appears to be \x00 and I can remove it with a grep search and replace. But when I try:

set
the theResult to (search theResult for "[\\x00]" replacing with "" with

in TextCommands, and many variations of those invisible characters, I am getting nowhere; the search does not pick up the invisible character.

How can I eliminate this (or these) invisible characters with regex in TextCommands?

Thanks much in advance.

Michael Ghilissen

PS: Has, are you there?
_______________________________________________
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
 _______________________________________________
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: 
 >Invisible Char. - TextCommand (From: Michael Ghilissen <email@hidden>)

  • Prev by Date: Re: Invisible Char. - TextCommand
  • Next by Date: AppleScript error, overflow.
  • Previous by thread: Re: Invisible Char. - TextCommand
  • Next by thread: Re: Invisible Char. - TextCommand
  • Index(es):
    • Date
    • Thread