July 3, 2012 at 5:57 pm
Does tsql have something similar to regex?
July 4, 2012 at 2:17 am
PATINDEX, LIKE and CHARINDEX can all be used to simulate regex.
There's an article on CLR implementations here[/url], with further discussion in the discussion section (which I still intend to go back to at some point, but have been without the time recently).
July 7, 2012 at 8:20 am
Thank you.
July 7, 2012 at 1:19 pm
Cadavre (7/4/2012)
PATINDEX, LIKE and CHARINDEX can all be used to simulate regex.There's an article on CLR implementations here[/url], with further discussion in the discussion section (which I still intend to go back to at some point, but have been without the time recently).
Be really sure to read the discussions attached to that article. Neither SQL# nor REGEX is all that it's cracked up to be. The discussions basicly lead you to one conclusion... if it can be done using LIKE, PATINDEX, and CHARINDEX in T-SQL, there's a very high probability that it will be faster than going outside the proverbial box.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply