Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 136,106 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,722 people online right now. Registration is fast and FREE... Join Now!




Regular expressions help

 
Reply to this topicStart new topic

Regular expressions help

cygnusX
18 Nov, 2007 - 03:17 AM
Post #1

D.I.C Head
**

Joined: 19 May, 2007
Posts: 159



Thanked: 2 times
My Contributions
I can check whether a string contains numbers and commas,but don't know how to check whether contains only numbers and commas.Can anyone help me with this?Thanks in advance.
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Regular Expressions Help
18 Nov, 2007 - 01:40 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,198



Thanked: 213 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Look into using the Caret inside of a bracket... [^b]at would match a string like cat, hat, sat... but not anything that starts with a "b" like "bat".

Hope that answers your question. smile.gif
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 09:19PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month