...
xp_pcre is so named because it uses the "Perl Compatible Regular Expressions" library. This library is available at http://www.pcre.org/. (You don't need to download the PCRE library in order to use xp_pcre. The library is statically linked.)
Overview
There are six extended stored procedures in the DLL:
xp_pcre_matchxp_pcre_match_countxp_pcre_replacexp_pcre_formatxp_pcre_splitxp_pcre_show_cache
The parameters of all of these procedures can be CHAR, VARCHAR or TEXT of any SQL Server-supported length. The only exception is the @column_number parameter of xp_pcre_split, which is an INT.
If any required parameters are NULL, no matching will be performed and the output parameter will be set to NULL. (Note: This is different than the previous version which left the parameters unchanged.)
..."
Oh yeah, this could rock. I know some RegEx hero's who might really like this. I've used RegEx just enough to be dangeours and am pretty much hooked too.
Seems kind of funny that I'm finding so many cool Extended Stored Procedures on the eve of SQL 2k5...
Now to see if there's any interest from my DBA's (I know you're reading this you rat... err... um... Great guys, all and one... That's my story and I'm sticking with it :)
(Via the always outstanding Larkware - The Daily Grind 582)
No comments:
Post a Comment
NOTE: Anonymous Commenting has been turned off for a while... The comment spammers are just killing me...
ALL comments are moderated. I will review every comment before it will appear on the blog.
Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...
I reserve, and will use, the right to not approve ANY comment for ANY reason. I will not usually, but if it's off topic, spam (or even close to spam-like), inflammatory, mean, etc, etc, well... then...
Please see my comment policy for more information if you are interested.
Thanks,
Greg
PS. I am proactively moderating comments. Your comment WILL NOT APPEAR UNTIL I approve it. This may take some hours...