I'm trying to convert this regex:
^.*[^a-z1-9\-].*$
to a regex to be used in an oracle database query. What I want to do is to find all rows that contains at least one character in the column name different of a-z, 0-9 and -.
The query
select * from device where regexp_like(ctnmname, '^.*[^a-z1-9\\-].*$')
returns all rows in the table.
EDIT
The problem was the regex with the 0 and a escaped -. It works with the regex ^.*[^a-z0-9-].*$