Hi,
How can I delete "qt" in 0,023qt using regex?
data test;
string="0,023qt";
newstring=prxchange('s/qt//', -1, string);
run;
The PRXPARSE Function simply compiles the rexex for later use. Sure you can use it, but you don't really benefit from it, since PRXCHANGE accepts an actual regular expression and not only the compiled rexex id
data test;
string="0,023qt";
rx=prxparse('s/qt//');
newstring=prxchange(rx, -1, string);
run;
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.