I am trying to convert below regular expression to oracle compliant regular expression syntax. It seems that the look-around is not supported in Oracle. Any idea how should I make it work.
(\b((xn--)?[a-z0-9]+(-[a-z0-9]+)*\.){1,2}[a-z]{2})(?=\z|[/\s])|(\b((xn--)?[a-z0-9]+(-[a-z0-9]+)*\.){1}[a-z]{3,})(?=\z|[/\s])
Below query should identify the website domain accurately.
select 1
from dual
where REGEXP_LIKE(
LOWER('sme other site https://www.mywebsite.com and few'),
'(\b((xn--)?[a-z0-9]+(-[a-z0-9]+)*\.){1,2}[a-z]{2})(?=\z|[/\s])|(\b((xn--)?[a-z0-9]+(-[a-z0-9]+)*\.){1}[a-z]{3,})(?=\z|[/\s])'
)