I have encountered a problem with regex in SQL Server.
I have a query like this:
SELECT 1
WHERE '/test/url/1' LIKE '/test/url/%[0-9]'
but there is a problem in this regex.
When I enter a non-valid URL like /test/url/1w1, it returns 1 and regex does not work correctly.
I want to validate an integer in URL with any length as :ID parameter.
Please recommend a correct regex for this situation.