I want to match only 911 or 1911 from a string with any number of preceding or ending * or #.
My Regex:
[^0-9]\*[1-9]{3,4}[^0-9]*
Test code below returns true when i was expecting it to be false:
select Digits
from (select '*11911#' as Digits) A
where Digits rlike '[^0-9]\*[1-9]{3,4}[^0-9]*'
What am I doing wrong?