Skip to content Skip to sidebar Skip to footer
Showing posts with the label Regex

Javascript Regex To Allow Only 2 Digit Numbers And 3 Digit Numbers As Comma Separated

I want Regex for Javascript for below validation: Textbox should allow only 2 digit numbers and 3 d… Read more Javascript Regex To Allow Only 2 Digit Numbers And 3 Digit Numbers As Comma Separated

How Do I Resolve An "invalid Quantifier" Error With Regexp In Javascript?

I'm trying to transfer the following URL validation function from my PHP code to my javascript … Read more How Do I Resolve An "invalid Quantifier" Error With Regexp In Javascript?

Allow Aphricates In This Regex

We're using this regular expression to allow text only in input fields: /^[a-zA-Z-,]+(\s{0,1}[a… Read more Allow Aphricates In This Regex

How To Escape Asterisk In Regexp?

I want to use the pattern *1*. I have tried \*1\*, but it doesn't work. Where is the problem? S… Read more How To Escape Asterisk In Regexp?

Global Matches Using Javascript Regular Expressions

Usually when you do something like 'test'.match(/(e)/) you would receive an array ['e&#… Read more Global Matches Using Javascript Regular Expressions

Regex For A Particular Date Format

I want to have a regex for a date format, Example: 01-Jan-2011 I have written ^[0-9]{1,2}-[a-zA-Z]{… Read more Regex For A Particular Date Format