|
On Wed, 4 Feb 2009 15:54:04 -0500, Toby Dunn <tobydunn@HOTMAIL.COM> wrote:
>Position = PRXMatch( '/\/[a-z|1-9| ]+$/i' , Text ) ;
...
hi tody,
a good try, but what if there is a dot or a comma? or what if the slash is
the last character? below is one that can handle all these. hth.
cheers,
chang
data _null_;
x="abc/abc/abc/333";
/* find the pos of the last slash char */
pos = prxmatch("|/[^/]*$|", x);
put x= pos=;
run;
/*
x=abc/abc/abc/333 pos=12
*/
|