Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Sql server regular expression- grouping of characters inside the square bracket

$
0
0

Hi ,

I am searching for a string in the table in the sql server database,
for that i am creating a regular expression as I  need to search with different combination.

select * from table where name like '%'+Sqlstring+'%'
Eg:->
and as an example Sqlstring ="[sam12R]India",
here i dont want to take all characters individually ( some of the characters i wanted to group and others individually also).

so my search string  will be like this

samIndia
1India
2India
RIndia

Could any one you please help me on this?


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>