Tagged Questions
0
votes
1answer
20 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
37 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
26 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
39 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
52 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
36 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
31 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
46 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 ...
497
votes
25answers
272k views
Validate email address in Javascript?
How can an email address be validated in Javascript?
Though this solution may be simple, I'm sure this is one of those useful things that people will be Googling for and deserves its own entry on the ...