Hi Rajesh
SELECT * FROM dbo.Ufn_RemoveComments2 (' HELLO /* WORLD */ ')
This code doesn't seem to yield any results using your function. It does work nicely with nested comments.
Kindest Regards,
Shivaram Challa
(http://challa.net - Home of the "Excel to CSV converter & Browsepad applications".)
Forum Etiquette: How to post data/code on a forum to get the best help[/url]