If I want to check that string contains @
symbol I can write something like
REGEXP_LIKE(source_column,'@')
or
REGEXP_LIKE(source_column, '.*@.*')
What is the difference between these two forms?
And why REGEXP_LIKE(source_column,'@')
returns true even if string has other symbols than @
? For example it matches with mail@mail.com
and 12@
Naturally '@'
looks like exact string match for me, and '.*@.*'
I read as 'any string with that symbol'.