Need regular Expression

Posted on 2011-03-22
Last Modified: 2012-05-11
Hi I need a regular expressions

1 number 0-9 and no spaces

thank you
Question by:charlesbaldo
  • 2

Accepted Solution

xRalf earned 250 total points
ID: 35192853

Expert Comment

ID: 35192863
no spaces : \W
LVL 10

Assisted Solution

khan_webguru earned 250 total points
ID: 35192999
Hello Bro,

Here is regular expression for 0 to 9 positive number


Open in new window

But if you want to use number and no spaces expression together then you should use the following.


Open in new window

Hope this will solve your problem.


Asif Ahmed Khan

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Fixing some Issues with regex again 9 22
c# find folder path with regex 2 82
REGEX 16 52
Removing text between BBCODE tags in Excel 3 46
by Batuhan Cetin Regular expression is a language that we use to edit a string or retrieve sub-strings that meets specific rules from a text. A regular expression can be applied to a set of string variables. There are many RegEx engines for u…
Do you hate spam? I do, and I am willing to bet you do as well. I often wonder, though, "if people hate spam so much, why do they still post their email addresses on the web?" I'm not talking about a plain-text posting here. I am referring to the fa…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now