I'm trying to show in SQL only the URL that have a path, for example:
stackoverflow.com/ - no path
stackoverflow.com/abc.html - no path
stackoverflow.com/abc- path
stackoverflow.com/abc/bla/- path
now in regex the answer is \/\w+$
I know regex is not working well with SQL, so i don't know how could i check URL.
this is what i tried:
select * from sites where url like '\/\w+$'
likeoperator uses Wildcards, not Regexstackoverflow.com/abcis not a path asabcis a file.