Invisible Char. - TextCommand
Invisible Char. - TextCommand
- Subject: Invisible Char. - TextCommand
- From: Michael Ghilissen <email@hidden>
- Date: Fri, 8 Jul 2005 09:50:08 -0400
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