Date: Fri, 25 Feb 2000 01:17:44 -0500
Reply-To: MCPalmer <mcpalmer@zbi.net>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: MCPalmer <mcpalmer@ZBI.NET>
Organization: Zurich Biostatistics, Inc.
Subject: Re: RXPARSE question
Content-Type: text/plain; charset="iso-8859-1"
Philip,
$W or $w is the character class for white space such as a blank, tab,
backspace, or carriage return. I would start developing the pattern
expression with (".t($W)*"). This will look for strings that end with or
without trailing white space. If you want just blanks and not white space,
try (".t($' ')*"). I've found pattern expressions that did just what I
wanted to be tricky to specify. Some trial and error with real-life test
data has often been helpful.
Michael Palmer
Zurich Biostatistics, Inc.
www.zbi.net
> Question for those who are familiar with new (V7+) functions RXPARSE and
> RXMATCH.
> I need to create pattern using RXPARSE function, which would match *.t -
> which means any string, but must end on .t with or without trailing
blanks.
> The pattern I tried RXPARSE(:.t@0) dose not handle trailing blanks. Any
help
> is greatly appreciated.
>
> Regards,
> Philip Primak
> Genzyme Corp.
>
|