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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Regex in powershell (part 2) 6 84
Help with powershell and regex 5 47
Jquery/JS : How to detect a telephone number or email within a string? 8 53
REReplaceNoCase help 1 33
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…
As most anyone who uses or has come across them can attest to, regular expressions (regex) are a complicated bit of magic. Packed so succinctly within their cryptic syntax lies a great deal of power. It's not the "take over the world" kind of power,…
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…

777 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