Regular Expression That Accept Indian Mobile Numbers?
Jan 4, 2011i need a regular expression that should accept indian mobile numbers. for example...
9788812345
9876512345
7891234567
8122212345
i need a regular expression that should accept indian mobile numbers. for example...
9788812345
9876512345
7891234567
8122212345
I need to validate the text box at server side by using regular exp which should accept 1 or 2 or 3 or 4 or 5 digits numbers .Need to restrict decimal part.
Ex: 1 or 23 or 455 or 5643 or 45667 --Should accept.
1.3, .2, 33.3 , 444.55 ,5555.99 -- should not accept.
How can I use a Regular Expression Validator to ensure that only a number like 3.00 is entered into a text box?
View 1 RepliesSuppose i have this input string "3rd position 5th time"
I want to write a Regular Expression to get 3 and 5 in a String like this "3 5" i.e., 3 and 5 both will be in a String but having a space. 3 and 5 may be any numbers like 12 or 13 ony any other numbers. For this i wrote this Regular Expression
Dim regexpression As
String =
"^[0-9]*+[0-9]"
but its not working .I am unable to get the logic.
Need reg exp for following.
May not repeat same number or letter more than 3 times.
May not contain more than 3 sequential number or letters in a row.
I have one field in database Mobile No.
In that I want to put validation which accepts "+" and numbers that is not more then 15.
And in that "+" should at the first place in value.
I have a text box which accepts CVV code of 3 or 4 numbers and im using regular expression validator
this is wat im using : is this correct way of using or not
code : ValidationExpression="(d{3,4}$"
I need a regular expression that only excepts numbers divisible by 1.5. I checked regex library and they have nothing on it.
View 4 RepliesI have one field in database Mobile No.In that I want to put validation which accepts "+" and numbers that is not more then 15.And in that "+" should at the first place in value
View 2 RepliesI need to construct a regular expression for the password textbox which shouldn't accept special characters($,@,!,etc).Even whitespaces,tabs. I tried the below this accepts special characters.
<asp:RegularExpressionValidator ID="RegEx" runat="server" ControlToValidate="Password"
ErrorMessage="Password must be atleast 8 characters and include a number,alphabets upper case and lower case.
"ToolTip="Password format is not correct"
ValidationExpression="^(?=.{8})(?=.*d)(?=.*[a-z])(?=.*[A-Z]).*$">
</asp:RegularExpressionValidator>
I am using regular expression validator for Numbers, Comma and Decimal.. The expression is given below.
mNumValidator.ValidationExpression = "^(d|,)*.?d*$"
Now I would like to have 5 digits behind decimal.
I'm wanting to remove all the special characters (leaving only numbers) in a phone textbox. Here is my current code:
Regex.Replace("(123)456-7890", "[\(\)\-\.+]", "");
i have to check if an input string is valid based on the given regular expression.. this is the regular expression.
(a(bb+aaa+((ab)*bb+(aba)*aa)(a+b)*) + (b(aa+bbb+((ba)*aa+(bab)*bb)(a+b)*)
+ is an OR
* is a LOOP, it is optional, it may be done as many as a user wants.
i've tried many ways to solve the problem that my professor gave me but my knowledge isn't that enough to solve this problem..
i am having a textbox for mobile number.
wt should be the validation expression to show error if user enters 0000000000 or 1111111111 or?
and i want the number to start either form 9 or 8 or 7.
How to validate india mobile number format in c# windows application
View 1 Repliesi want a text box in asp that should take only numbers if we enter alphabets or special characters that should give an error how can i achive this
View 8 RepliesI had been doing a type check for Double for an input field on a web page but now I need to allow commas. Can this be done using a CompareValidator or do I need to use a regex validator?
View 1 RepliesI'm trying to use the validator to work on a email form to ensure that they enter a valid from email address. That part works. I also want to add to the expression the text that I pre-populate in the txtbox ("Enter your email address") so on postback, after sending the message, I can clear the fields and repopulate that box.
How do I add that wording to the current expression: w+([-+.']w+)*@w+([-.]w+)*.w+([-.]w+)*
I have a TextBox & I want to accept just numbers in this TextBox when typing?
View 3 RepliesI am using Regular Expression validator for a text box. The below is working fine.It is not performing validation when I enter values like 0000..001.How can I modify validation expression? But it would allow values like 100,...5000 i.e zeros after a number.
<asp:RegularExpressionValidator ID="reg2" runat="server" ControlToValidate="rng2"
ValidationExpression="^[0-9]+" ErrorMessage="*Please Enter a Valid Number for Second Range."
ForeColor="Red" Font-Bold="True"></asp:RegularExpressionValidator>
i am using a search box for my application which returns a dataset. however when i click on the search button it returns an empty table result. how could i add validation so it doesnt accept empty strings or numbers.
View 9 RepliesI need some help in regular expression.I am validating the textbox text when updating the records.When i click the update button,the first 5 letters should be equal to CM000 or cm000.How to validate this using regular expression in asp.net. does anyone know validationexpression for this.
View 1 RepliesHow to validate textbox to enter oly numbers for mobile no?
View 1 RepliesI am designing ASP.net Web pages and not sure if this would be the right way to do this.I am designing the web sites that will be accessed from either regular computers or mobile devices (phone).I was thinking to detect at very first page that whether users are coming from mobile browser or regular browser and direct to appropriate pages. So for mobile users, create/display separate UIs (rearrange controls to fit on mobile device) and for regular users, create/display separate UIs. The backend functionalities will be same, but just the UIs. Therefore, in this case I will create two separate projects in same solution, one for mobile UIs, and other one for regular UIs, but same code behinds.
View 3 RepliesI need a regular expression for support both date formats dd-MMM-yyyy and dd-MMM.
Ex:
04-Oct-2010
04-Oct
04-OCT-2010
04-OCT