I have string with patterns and I wan to get values from each row in table.
For example:
declare @str = 'abcasd khgf [img]123-456-789" kh kshgdf sfj sfg [img]354-658-598" style asdlkafl'
Now I want to get only numbers after each [img]
and store it into temp
table.
Temp table output required
id number
-----------------
1 123-456-789
2 354-658-598
string @str
may contain more than 2 number and may have additional unwanted string.