0

I'm looking for a regular expression for the below SQL query.

Select * from data where url like '%?%<alphabet>'

Where the

alphabet

can be any alphabet(a-z).

Thanks in advance

Harikrishnan N
  • 53
  • 1
  • 2
  • 7

1 Answers1

4

While RegEx is not supported in SQL Server you may try using the pattern matching feature of the LIKE keyword.

Pattern matching in search conditions

SELECT * FROM data WHERE url LIKE '%[a-z]'
Cyndi Baker
  • 670
  • 8
  • 15