https://communities.sas.com/t5/SAS-Data-Management/How-do-I-get-regular-expressions-functions-in-PRO...
PROC DS2;
package regexp /overwrite=yes;
method match(varchar(1024) pattern, varchar(1024) string) returns varchar(1024);
return prxmatch(pattern, string);
end;
endpackage;
run;
QUIT;
PROC FEDSQL;
CREATE TABLE foo AS
SELECT
regexp.match('/[0-9]+/', id) AS test1,
regexp.match('/[A-Z]+/', id) AS test
FROM someDatabase.someSchema.someTable;
QUIT;
With an error message of:
ERROR: Access Violation occurred during PREPARE!
Access Violation? is the error that needs to be better explained.