HP3000-L Archives

May 2002, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Ted Ashton <[log in to unmask]>
Reply To:
Ted Ashton <[log in to unmask]>
Date:
Fri, 17 May 2002 08:20:08 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
Thus it was written in the epistle of Richard Barker,
> Hi
> 
> Does anyone know a simple way in Qedit or programmatically in Quiz/Qtp that
> I can remove non US alphabetic characters.  I can do it in Quiz, but it's
> very crap and slow, testing each char, is there a better faster way.  
> 
> I'm talking to another computer system and the other system can't handle
> French/Greek/etc character sets, for example 'í'.

So far as I can tell, this should explain to Qedit what you want:

  cq "[^ -~]"(r) "" @

In case it doesn't make sense, let me take it apart for you

  cq       -- change quiet (don't show me the lines as they are changed)
  "[^ -~]" -- A regular expression consisting of a negated character class.
              It will match every character which is outside the " " to "~"
              range (adjust as appropriate :-).
  (r)      -- this is a regular expression, not a string to match
  ""       -- replace it with nothing.  You could put "." or " " here instead
              if you want to maintain line lengths.
  @        -- on all lines.

HTH,
Ted
-- 
Ted Ashton ([log in to unmask]) | From the Tom Swifty collection:
Southern Adventist University    | "It's a bad hobbit", said Tom, not at all
Deep thought to be found at      | keenly.
http://www.southern.edu/~ashted  |

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2