davidaichele
New Member
Without the ability to leverage regular expressions in a SQL query within Progress... does anyone know how I can write a where clause that will identify non-alphanumeric values?
trim-chars
A character expression that specifies the characters to trim from expression. If you do not specify trim-chars, the TRIM function removes spaces, tabs, line feeds, and carriage returns.
IF TRIM( REPLACE( TRIM( i_cacc_nr ), " ":U, "#":U),"0123456789":U ) > "" THEN
Which is greater than "", so contains non alpha-numerics...In fact I just tested it and I get !!defg!!! as a result.
I thought this question was about a SQL query, not an ABL query, given that the OP mentioned SQL and it's in the SQL-92 forum.
select * from pub.mcomp where rtrim ( lower( main_comp_code ), '0123456789abcdefghijklmnopqrstuvwxyz' ) > ''