Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > I can't do regular expressions...

Reply
Thread Tools

I can't do regular expressions...

 
 
riversmithco@hotmail.com
Guest
Posts: n/a
 
      02-09-2005
I need some help on a regular expression if any has the skill.

I need to specify a string in which there can be any number of numbers
followed by a character in the range (d, h, or s)

Exmple:

123d


Thanks

 
Reply With Quote
 
 
 
 
Tod Birdsall
Guest
Posts: n/a
 
      02-09-2005
Hi,

The following regular expression should work:

^\d+[dhs]$

I recommend checking out http://RegExLib.com for an extensive list of
regular expressions and a very helpful regular expression cheat sheet.

Hope this helps.

Tod Birdsall, MCP
http://tod1d.blogspot.com

 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      02-09-2005
You're gonna love this. It's a freeware visual utility that helps you build
regular expressions:

http://www.weitz.de/regex-coach/

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

<> wrote in message
news: oups.com...
>I need some help on a regular expression if any has the skill.
>
> I need to specify a string in which there can be any number of numbers
> followed by a character in the range (d, h, or s)
>
> Exmple:
>
> 123d
>
>
> Thanks
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using regular phone as voip device with regular modem? hygum VOIP 5 03-23-2005 03:51 PM
Connect 2 routers (wireless and regular routers) Dineyar Buhariwala Wireless Networking 1 11-24-2004 01:37 PM
can a strongly named assembly reference a regular assembly? Prasanna Padmanabhan ASP .Net 1 11-19-2003 06:21 AM
Custom Regular Expressions in ASP.net Jay Douglas ASP .Net 3 11-03-2003 08:09 PM
Dynamically changing the regular expression of Regular Expression validator VSK ASP .Net 2 08-24-2003 02:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57