Off the cuff, I think this should do the trick:
repeat with i = 127 to 255
replace numToChar(i) with empty in myField
end repeat
you could write this as a function & call it when you need it,
passing the text & the start & stop character numbers to be deleted,
e.g.
function stripGarbage(stripTxt, startNum, stopNum)
repeat with i = startNum to stopNum
replace numToChar(i) with empty in stripTxt
end repeat
return stripTxt
end stripGarbage
Regards,
Dave Tremmel
>I need to get rid of ascii 127 to ascii 255 and
>also most of the ones below ascii 32 from a text
>fld (or after placing in a variable). In other
>words, get rid of just about all garbage that
>might pop up except a-z, A-Z, 0-9, punctuation,
>spaces, tabs and carriage returns etc.
>
>This will be done on a Mac only MC application.
>
>Anyone know of an external, RegEx expression
>or some other cool, *fast* way of getting this done?
>
>tia
>
>sims
>
>Archives: http://www.mail-archive.com/metacard%40lists.best.com/
>Info: http://www.xworlds.com/metacard/mailinglist.htm
>Please send bug reports to <[EMAIL PROTECTED]>, not this list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.