|
Don't you need to be using PrxParse
data _null_;
rx = prxparse("/\d+/");
rx = prxparse("/\d*/");
rx = prxparse("/\d{3}/");
rx = prxparse("/\d{1,3}/");
run;
On Tue, Aug 23, 2011 at 2:17 PM, Mike Rhoads <RHOADSM1@westat.com> wrote:
> OK, the U.S. east coast earthquake has obviously addled my brain.
>
> data _null_;
> rx = rxparse("/\d+/");
> rx = rxparse("/\d*/");
> rx = rxparse("/\d{3}/");
> rx = rxparse("/\d{1,3}/");
> run;
>
> The first 3 of these compile the regular expression just fine, but for the final one, I get the following error message in the log:
>
> ERROR: The following pattern expression passed to the function RXPARSE contains a syntax error.
> /\d{1,3}/
> ^
> ERROR: Need a symbol to close an optional subexpression.
>
> I am certainly not an RX expert, but according to the documentation, this sure looks OK to me (SAS 9.2 TS2M3, WinXP).
>
> Thanks!
>
>
> Mike Rhoads
> RhoadsM1@Westat.com
>
|