dbTalk Databases Forums  

regex in DTS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss regex in DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
J-T
 
Posts: n/a

Default regex in DTS - 06-08-2005 , 01:12 PM






I use either of these two patterns

1)"d\d\d\d\d\d\d\d\d\d"
2)""d{10}"

to regex a 10 digit number but it never pass the test method (always says
that the input dosen't match) .

Anyone can help?

Thanks



Reply With Quote
  #2  
Old   
Ross Presser
 
Posts: n/a

Default Re: regex in DTS - 06-08-2005 , 03:06 PM






On Wed, 8 Jun 2005 11:12:32 -0700, J-T wrote:

Quote:
I use either of these two patterns

1)"d\d\d\d\d\d\d\d\d\d"
2)""d{10}"

to regex a 10 digit number but it never pass the test method (always says
that the input dosen't match) .

Anyone can help?

Thanks
Try
"\d{10}"

or

"[0-9]{10}"


Reply With Quote
  #3  
Old   
J-T
 
Posts: n/a

Default Re: regex in DTS - 06-09-2005 , 12:30 PM



Thanks ,it worked,stupid dropping of "\":-)
"Ross Presser" <rpresser (AT) NOSPAMgmail (DOT) com.invalid> wrote

Quote:
On Wed, 8 Jun 2005 11:12:32 -0700, J-T wrote:

I use either of these two patterns

1)"d\d\d\d\d\d\d\d\d\d"
2)""d{10}"

to regex a 10 digit number but it never pass the test method (always says
that the input dosen't match) .

Anyone can help?

Thanks

Try
"\d{10}"

or

"[0-9]{10}"



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.