(Other than using a UDF) Any REGEXP-In-SQL support for DB2 9.7 ?
That works fine except for DB2 z/OS - in DB2 v10 z/OS you must use PASSING as follows
with val as ( select t.text from texts t where xmlcast(xmlquery('fn:matches($v,"^[A-Za-z 0-9]*$")' PASSING t.text as "v" ) as integer) = 0 ) select * from val