Click here to Skip to main content
15,042,664 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
GeneralRe: What is the Regular expression that detects a $ sign and digits in html code Pin
Member 82168287-Sep-11 8:48
MemberMember 82168287-Sep-11 8:48 
GeneralRe: What is the Regular expression that detects a $ sign and digits in html code Pin
Pete O'Hanlon7-Sep-11 5:38
mvePete O'Hanlon7-Sep-11 5:38 
AnswerRe: What is the Regular expression that detects a $ sign and digits in html code Pin
jschell7-Sep-11 8:32
Memberjschell7-Sep-11 8:32 
QuestionRegular Expression Pin
Morgs Morgan11-Jul-11 22:07
MemberMorgs Morgan11-Jul-11 22:07 
AnswerRe: Regular Expression Pin
Firo Atrum Ventus11-Jul-11 22:31
MemberFiro Atrum Ventus11-Jul-11 22:31 
GeneralRe: Regular Expression Pin
Morgs Morgan11-Jul-11 23:09
MemberMorgs Morgan11-Jul-11 23:09 
GeneralRe: Regular Expression Pin
PIEBALDconsult17-Jul-11 5:55
professionalPIEBALDconsult17-Jul-11 5:55 
AnswerRe: Regular Expression [modified] Pin
PIEBALDconsult17-Jul-11 7:02
professionalPIEBALDconsult17-Jul-11 7:02 
If you want to ensure that the separators (if any) between the groups are the same, I think you need to use a backreference[^].

Something like this perhaps:

(?'Area'\d{3})(?(?=(\s|-))(?'Sep'(\s|-)))(?'Prefix'\d{3})(?(Sep)\k<Sep>)(?'Number'\d{4})

modified on Sunday, July 17, 2011 2:00 PM

AnswerRe: Regular Expression Pin
JimmyRopes13-Aug-11 11:57
professionalJimmyRopes13-Aug-11 11:57 
AnswerRe: Regular Expression [modified] Pin
Shahan Ayyub23-Aug-11 11:00
MemberShahan Ayyub23-Aug-11 11:00 
QuestionValue between brackets with a sperator character [modified] Pin
Groulien26-May-11 2:27
MemberGroulien26-May-11 2:27 
AnswerRe: Value between brackets with a sperator character Pin
Groulien26-May-11 3:28
MemberGroulien26-May-11 3:28 
AnswerRe: Value between brackets with a sperator character Pin
Peter_in_278026-May-11 14:13
professionalPeter_in_278026-May-11 14:13 
Questionarray of file extentions Pin
Ali Al Omairi(Abu AlHassan)22-May-11 20:43
professionalAli Al Omairi(Abu AlHassan)22-May-11 20:43 
AnswerRe: array of file extentions Pin
Peter_in_278022-May-11 21:13
professionalPeter_in_278022-May-11 21:13 
GeneralRe: array of file extentions Pin
Ali Al Omairi(Abu AlHassan)23-May-11 21:46
professionalAli Al Omairi(Abu AlHassan)23-May-11 21:46 
GeneralRe: array of file extentions Pin
Ali Al Omairi(Abu AlHassan)2-Nov-11 23:20
professionalAli Al Omairi(Abu AlHassan)2-Nov-11 23:20 
QuestionForming reguar expressions using a builder class? Pin
Sander Rossel8-Apr-11 2:13
professionalSander Rossel8-Apr-11 2:13 
AnswerRe: Forming reguar expressions using a builder class? Pin
User 17164928-Apr-11 2:40
professionalUser 17164928-Apr-11 2:40 
GeneralRe: Forming reguar expressions using a builder class? Pin
Sander Rossel8-Apr-11 8:54
professionalSander Rossel8-Apr-11 8:54 
AnswerRe: Forming reguar expressions using a builder class? Pin
PIEBALDconsult22-May-11 3:27
professionalPIEBALDconsult22-May-11 3:27 
QuestionNegative regular expression Pin
Łukasz Nowakowski4-Apr-11 22:11
MemberŁukasz Nowakowski4-Apr-11 22:11 
AnswerRe: Negative regular expression Pin
Peter_in_27804-Apr-11 23:42
professionalPeter_in_27804-Apr-11 23:42 
GeneralRe: Negative regular expression Pin
Łukasz Nowakowski5-Apr-11 0:09
MemberŁukasz Nowakowski5-Apr-11 0:09 
AnswerRe: Negative regular expression Pin
dasblinkenlight5-Apr-11 2:47
Memberdasblinkenlight5-Apr-11 2:47 

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

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