We help IT Professionals succeed at work.

PATINDEX with regular expressions?

2,511 Views
Last Modified: 2008-04-24
Hey guys -

I'm trying to write a stored procedure / function in SS2k5. I have a pattern that i'm trying to match out of my input string. I have the regular expression written for it - but I just need to get the starting index of my search string from my regular/input string.

I can't use regex stuff that requires CLR to process- this all needs to be purely done in sql.

I've found out that PATINDEX can't take in regular expressions - but that in theory is what i'm trying to do....

Ideas?
Thanks :o)
Comment
Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
hmmmmm it does actually! thank you so much!!
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.