All Questions
Tagged with regex validation
3,730
questions
-4
votes
0
answers
35
views
JavaScript Validation regex to allow only alphabet text or alphanumeric only [duplicate]
I need Javascript validation regex to allow only alphabet text or alphanumeric only.
Example -
dGgs1s23 - valid
12fUgdf - valid
abchfe - valid
ABFGC - valid
121232 - invalid
abd()* - invalid ...
-1
votes
0
answers
35
views
Enforcing character limit in Regexp [duplicate]
I'm currently working on a fairly simple email validation pattern, but I'm unable to cap the local domain part of the pattern to 63 characters.
The restraints of the pattern are that there should be:
...
0
votes
0
answers
26
views
Validate fax with repeating numbers using regex [duplicate]
I am currently validating faxes/phones using the following regex:
^(\+?)([\(]?\d{1}[\)]?((\s{1})|(-)?))?([\(]?\d{3}[\)]?-?\s?\d{3}-?\s?\d{4}\s?)?$
Unfortunately, with this regex, the following fax ...
2
votes
1
answer
86
views
Issue Using Regex Pattern in HTML Pattern Attribute
Issue Using Regex Pattern in HTML Pattern Attribute
I'm encountering an issue where a regex pattern that works correctly with the .test() method in JavaScript is not functioning as expected when used ...
0
votes
1
answer
92
views
How does regular expressions work in TMS WEB Core?
I tried doing the following regular expression function:
uses System.RegularExpressions;
...
function ValidateEmail(Email: string): Boolean;
begin
const EmailPattern = '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-...
0
votes
0
answers
15
views
I need to restrict only | Pipe special character from input in angular [duplicate]
<dx-text-box (onKeyDown)="Submit($event)"
(onValueChanged)="somthing()" maxLength="100"[(value)]="Description">
<dx-validator><dxi-validation-...
0
votes
1
answer
234
views
Why does Java java.util.regex Pattern Matcher Throw Runtime Exceptions?
The following code throw a runtime exception in my project
Pattern pattern = Pattern.compile("");
Matcher matcher = pattern.matcher(null);
Uncaught exception: java.lang.NullPointerException:...
0
votes
1
answer
116
views
How to use HTML5 input pattern attribute to validate Latin and extended Latin characters only
I am working on a web form where users are required to input text that should only contain Latin characters, including extended Latin characters (such as ñ, é, ü, etc.), but should exclude any non-...
0
votes
2
answers
118
views
@Qualifier field versus constructor parameters injection problems in Spring
I have two beans: CheckPassword and CheckEmail
@Service("CheckPassword")
@Primary
public class CheckPassword implements CheckStringInterface {
private static final String regex_password ...
2
votes
2
answers
134
views
Regex Match a pattern that only contains one set of numeral, and not more
I'm playing with an integer input validator I decided to make while taking a C++ course.
It's not an assignment, it's just a tangent I am exploring.
I thought it would be neat to be able to take all ...
-2
votes
1
answer
124
views
How to check the records having apostrophes ( ' ) in databricks Sql
Need to find the records having special characters. the allowed characters are
Hyphen, comma, forward slash(/), Hash and Dot and apostrophes (').
In the AZURE Databricks Table having few data like
...
-2
votes
1
answer
50
views
IP Address validation for usable range
I'm using the following regex test to validate IP Addresses and it does appear to be working.
/\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[...
0
votes
2
answers
77
views
How can I validate a domain using a RegExp, with separate expressions for classic DNs, ACE IDNs, and non-ACE IDNs?
The emphasis here is in part on defining (how) a character class for validating the allowed IDN character set. I'm looking for expert advice (and any supporting references), among other things, but ...
0
votes
1
answer
85
views
How do I validate a password using Joi to ensure that it contains 2 numbers, 2 special characters, 2 uppercase letters, and 2 lowercase letters?
Is there a way to do this using Joi?
For example:
Joi.string()
.required()
.min(8)
.max(16)
.pattern(/(?=(?:.*[a-z]){2,16}).+/)
.pattern(/(?=(?:.*[A-Z]){2,16}).+/)
...
1
vote
2
answers
93
views
Comma separated mobile number Regex validation
I'm trying validation for mobile number(With country code) which is not working. Posting the validation criteria below:
Valid Numbers:
+18790912345 (Valid)
+18790112345,+18790123409 (Valid)
+1-...