The RLIKE operator is a synonym of the regexp operator. It works the same way as the regexp operator. It uses the same metacharacters as well. Let us look at some examples to understand
select * from film where title rlike 'TE*';
select * from film where title rlike 'TE+';
select * from film where rating rlike '[0-9]';
select * from film where rating rlike '^([^0-9]*)$';
Similarly, we can have examples with the Not RLIKE operator.
select * from film where rating NOT rlike '^([^0-9]*)$';
Get all records that do not follow a certain pattern. Let's say we want all the names of actors that do not have the following pattern
<some characters between H and M> + <exactly one character> + T
We can use the following,
SELECT FIRST_NAME FROM ACTOR WHERE FIRST_NAME NOT RLIKE '[H-M].[T]';