LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 2 Apr 2007 10:18:43 -0400
Reply-To:   "data _null_;" <datanull@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "data _null_;" <datanull@GMAIL.COM>
Subject:   Re: INPUT statement and a variable with different value lengths
Comments:   To: RolandRB <rolandberry@hotmail.com>
In-Reply-To:   <1175521781.028299.258160@q75g2000hsh.googlegroups.com>
Content-Type:   text/plain; charset=ISO-8859-1; format=flowed

On 4/2/07, RolandRB <rolandberry@hotmail.com> wrote: > Try /[A-Z][A-Z]*/

Almost. "*" means zero or more occurrences, therefore returning 1 for all records in the example data.

But "+" means one or more.

i = prxmatch('/[A-Z][A-Z]+/',_infile_);

works for the example data.


Back to: Top of message | Previous page | Main SAS-L page