Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Regular expression

Author  Topic 

jeff06
Posting Yak Master

166 Posts

Posted - 2009-02-11 : 11:47:06
Anxiety 300.0x
300.19
300.2x
300.3
300.8x
Substance abuse 303.xx
304.xx
305.xx
Sleep 307.4x
eating 307.5x
Stress 308.xx
Depression 311.xx
296.2x
296.3x

I want to regular expression for above 6 series. How can I do that?
Thanks.
Jeff

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2009-02-11 : 13:52:55
Your question is not clear.
Go to Top of Page

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2009-02-11 : 14:20:16
couldn't even take a guess what you're asking - check this out:
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Be One with the Optimizer
TG
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-02-11 : 17:00:29
I guess he wants to select all records which has text in front of a 3-digit number followed by a point.

SELECT * FROM Table1 WHERE Col1 LIKE '% [0-9][0-9][0-9].%'



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -