0
votes
1answer
21 views

jQuery validate phone number input with the igorescobar Jquery Mask Plugin

I'm using the Jquery Mask plugin to validate a phone text input like so: http://igorescobar.github.io/jQuery-Mask-Plugin/ $('#phone').mask('(999) 999-9999'); How can I use a regex expression to ...
1
vote
1answer
38 views

Using JavaScript RegExp to valid email. Regex special characters not working

I've got this JavaScript function: function emailaddresscheck() { var emailregex = new ...
0
votes
1answer
27 views

JSF telephone numbers regular expression

I'm using primefaces of JSF, I'm doing a regular expression checking for the input of phone number, accepted values are: 909888 +90877845 here's my code <p:inputText validatorMessage="invalid ...
-1
votes
5answers
40 views

Completely confused about this simple regex in preg_match

I'm trying to validate some input, but I'm getting reverse results (or maybe I have completely missed the use of the preg_match function?) This is my code: $check_firstname = "@#"; ...
1
vote
6answers
53 views

jQuery function for check textbox

I’d like use jquery function that validate a input field. This input field must be used for entering 11 digit numbers that start with 0. I tried some function but doesn’t work! function ...
0
votes
2answers
36 views

Regular expression for name with parentheses

so first time trying to come up with regular expression validation and im a bit confused. User populates the 'name' section of our form like so: Lastname, firstname (department). but it could also ...
2
votes
3answers
47 views

Regex to match decimal value

I have the following regex to match decimals: @"[\d]{1,4}([.][\d]{1,2})?" but I am able to input multiple decimal dots. How can I prevent this? In general, I can have input strings like "2000" or ...
1
vote
2answers
37 views

Phone No validation with regular expression - Ph. Format (974) 041-0475 [duplicate]

I have to validate a phone number which is in following format (974) 041-0475 I have tried with regex @"^+(?:[0-9] ?){6,14}[0-9]$" but its not working for above example. It's working for plain ...
1
vote
2answers
32 views

Entity Framework Regular Expression with Slashes but without Commas

I have an Entity Framework model that I have put some validation on, in particular a regular expression to accept alpha-numeric, spaces and some punctuation. However when trying to add a slash '/' as ...
1
vote
2answers
56 views

Validate that password doesn't contain 3+ consecutive characters from name

I need to do this following password validation in Java Must be at least 8 characters in length Must contain at least 1 number Must contain at least 1 upper case letter Must contain at least 1 lower ...
1
vote
2answers
97 views

abort() called using std::regex to validate URL

#include <iostream> #include <string> #include <regex> using namespace std; int main () { if (std::regex_match ("http://www.google.com", ...
-1
votes
0answers
27 views

Issue with regex in jquery form validation

I have some validation rules setup for a form eg $('form').validate({ rules: { Title: { required: { ...
0
votes
2answers
49 views

Clear Textbox with Regular Expression Validator

I Got a text box with a Regular Expression validator, to validate if my textbox is numeric. here's the code : <asp:TextBox ID="txtAmount" runat="server" ...
0
votes
1answer
44 views

Check pattern in javascript

I Have next pattern: [a-z[A-Z]а-я[А-Я][0-9]їЇіІєЄ[-][,]_"/\ ]{0,483} <input id="<?= $field['id'];?>" name="input" <?php if (isset($field['regex'])) echo ...
0
votes
2answers
60 views

Validate email (without sending confirmation)

Validation emails aren't an option :( I have a very specific set of rules that I need to use to validate email addresses. I've tried the Apache Commons library as well as the JavaMail library; ...
0
votes
2answers
31 views

Debugging a Javascript RegExp Regular Expression: Validation Hangs on Amazon URL

In using Javascript to validate a URL, I used the following code from an SO answer: function validateURL(textval) { var urlregex = new RegExp( ...
1
vote
5answers
54 views

Preg_match and substr together

I have a string that I need to test to see if the characters after the [0] character (the very first) are numbers or not. So example : C is [0] I then need to check if the remaining characters are ...
0
votes
2answers
42 views

Extending Validation Library - CI2

I need a to set up a validation for student ID's and the CI native library is not cutting it, so I extended. I however am having an issue getting it work, and I don't quite know where I am goofing up. ...
-1
votes
3answers
62 views

php regex or string check to make sure a variable contains specific characters [closed]

I need to make sure a variable that holds product id contains only specific characters. For integer-only variables I'm using is_numeric to check. But for a product id, the variable can contain only ...
0
votes
1answer
29 views

Validation Summary not picking up Error Message in group

I have several required fields and regex's on my form. The validation is fired on a button click. When the button is clicked, the error messages are showing where the asp:RequiredField are declared ...
0
votes
3answers
34 views

html5 validation regular expression

I only want alphanumeric, numbers, space, dash and underscore. I am using [\w\s-_]* But because I have allowed spaces, a space is allowed as input, in html5 how can i validate if only spaces are ...
0
votes
3answers
84 views

Javascript Regex Password validation issues

I'm currently doing a Javascript password control, which of I have to put alerts out for every single mismatch the password has towards the password requirements, which tells you exactly what's wrong ...
0
votes
4answers
53 views

RegularExpressionValidator error message fails to appear

I'm trying to add a check for file types to a file upload form: <asp:FileUpload ID="FileUpload1" runat="server" /> <asp:RegularExpressionValidator id="FileUpLoadValidator" runat="server" ...
0
votes
1answer
13 views

how to complete this regex validation

I am using jquery validator for the first time, by adding a method to validate a field against a regex. And I'm also quite new to regex :) $.validator.addMethod( "regex", function(value, ...
0
votes
4answers
51 views

validating a string with RegEx

I am trying to validate a RegEx string in Java but i cant get it to work properly. I am attempting to make sure the the following string "AB10XY" is always contained with the textField when performing ...
-1
votes
2answers
57 views

phone number validation with space [duplicate]

I'm very new to jQuery, I just want a regular expression for validating phone numbers in jQuery for one of my text fields. I want to show phone numbers with a max length of 12 and allow spaces; my ...
-4
votes
2answers
70 views

What will be the regular expression for pattern like 4,1,66,11,2,77,25,2,99,4,5?

What will be the regular expression for pattern like 4,1,66,11,2,77,25,2,99,4,5 I am using .NET validation controls.
-1
votes
1answer
68 views

JavaScript RegEx expression for format '0 2 0 2 2' [closed]

I am looking for the regEx solution that matches the format of: number whitespace number whitespace number i.e. 0 2 0 2 2 or 0 10 0 10 4 etc etc The string can be infinite in length and therefore ...
1
vote
1answer
50 views

Regular Expression PHP not validating correctly

I am trying to write a regex for my code, the regex is used to validate the phone number format, the first two digits should be either 01,04,05,06,07,08,09 followed by a dash (-) and followed by 6 ...
0
votes
2answers
66 views

JavaScript regex form validation failing

I made this random number guessing game using PHP, and I'm trying to implement client-side form validation using JavaScript. The script should allow only a number from 1-100 and reject everything else ...

1 2 3 4 5 36
15 30 50 per page