Click here to Skip to main content

Regular Expressions

 
QuestionWhat is the Regular expression that detects a $ sign and digits in html code PinmemberMember 82168286-Sep-11 7:49 
AnswerRe: What is the Regular expression that detects a $ sign and digits in html code [modified] PinmemberTimothy CIAN6-Sep-11 10:54 
GeneralRe: What is the Regular expression that detects a $ sign and digits in html code PinmemberMember 82168287-Sep-11 5:20 
GeneralRe: What is the Regular expression that detects a $ sign and digits in html code PinmemberTimothy CIAN7-Sep-11 5:27 
GeneralRe: What is the Regular expression that detects a $ sign and digits in html code PinmemberMember 82168287-Sep-11 8:48 
GeneralRe: What is the Regular expression that detects a $ sign and digits in html code PinprotectorPete O'Hanlon7-Sep-11 5:38 
AnswerRe: What is the Regular expression that detects a $ sign and digits in html code Pinmemberjschell7-Sep-11 8:32 
QuestionRegular Expression PinmemberMorgSim11-Jul-11 22:07 
Hi Guys,
I have three Regex and would like to know if it's possible to combine them into one.
I'm validating phone numbers in the form:
- 0219081234
- 021 908 1234
- 021-908-1234

here are my regex for the above in order:
- var phoneRegex1 = /^(\d{3})(\d{3})(\d{4})$/;
- var phoneRegex2 = /^(\d{3})(\-)(\d{3})(\-)(\d{4})$/;
- var phoneRegex3 = /^(\d{3})(\ )(\d{3})(\ )(\d{4})$/;

Thanks in Advance,
Morgs
AnswerRe: Regular Expression PinmemberFiro Atrum Ventus11-Jul-11 22:31 
GeneralRe: Regular Expression PinmemberMorgSim11-Jul-11 23:09 
GeneralRe: Regular Expression PinmemberPIEBALDconsult17-Jul-11 5:55 
AnswerRe: Regular Expression [modified] PinmemberPIEBALDconsult17-Jul-11 7:02 
AnswerRe: Regular Expression PinmemberJimmyRopes13-Aug-11 11:57 
AnswerRe: Regular Expression [modified] PinmemberShahan Ayyub23-Aug-11 11:00 
QuestionValue between brackets with a sperator character [modified] Pinmembernbgangsta26-May-11 2:27 
AnswerRe: Value between brackets with a sperator character Pinmembernbgangsta26-May-11 3:28 
AnswerRe: Value between brackets with a sperator character PinmemberPeter_in_278026-May-11 14:13 
Questionarray of file extentions PinmemberAli Al Omairi(Abu AlHassan)22-May-11 20:43 
AnswerRe: array of file extentions PinmemberPeter_in_278022-May-11 21:13 
GeneralRe: array of file extentions PinmemberAli Al Omairi(Abu AlHassan)23-May-11 21:46 
GeneralRe: array of file extentions PinmemberAli Al Omairi(Abu AlHassan)2-Nov-11 23:20 
QuestionForming reguar expressions using a builder class? PinmemberNaerling8-Apr-11 2:13 
AnswerRe: Forming reguar expressions using a builder class? PinmemberRichard A. Abbott8-Apr-11 2:40 
GeneralRe: Forming reguar expressions using a builder class? PinmemberNaerling8-Apr-11 8:54 
AnswerRe: Forming reguar expressions using a builder class? PinmemberPIEBALDconsult22-May-11 3:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 17 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid