In SQL Server, is there a way to search (and format) a result for a certain string (like preg_match in PHP):
SELECT (IF (col1 contains 'http'){'<a>' + col 1 + '</a>'}
else {'<b>' + col1 + '</b>'}),
col2
FROM Table
... etc.
Is this possible? I want to format the results based on their content.