Date: Fri, 22 May 2009 10:21:00 -0700
Reply-To: "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Terjeson, Mark" <Mterjeson@RUSSELL.COM>
Subject: Re: SAS function: find how many time a sentece happen
Content-Type: text/plain; charset="us-ascii"
If you literally mean "sentences" in a single
variable, then IF you have the luxury of knowing
ahead of time that the period character IS always
used AND that the period character DOES NOT occur
for any other purpose such has a decimal point,
THEN, you could do something like counting the
number of periods.
myvar = 'Hello. Goodbye. Cheers.';
NumberOfSentences = length(myvar)-length(compress(myvar,'.'));
If your rules are a bit different, you still may be
able to establish the right checks within those
pattern matching efforts and adjust accordingly.
Hope this is helpful.
Investment Business Intelligence
Investment Management & Research
Global Leaders in Multi-Manager Investing
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Sent: Friday, May 22, 2009 10:13 AM
Subject: SAS function: find how many time a sentece happen
Is there a function to find hom may time a sentence happen in a