Click here to Skip to main content
12,503,903 members (55,487 online)

Regular Expressions

 
AnswerRe: Regular Expression Pin
Firo Atrum Ventus11-Jul-11 22:31
memberFiro Atrum Ventus11-Jul-11 22:31 
GeneralRe: Regular Expression Pin
MorgSim11-Jul-11 23:09
memberMorgSim11-Jul-11 23:09 
GeneralRe: Regular Expression Pin
PIEBALDconsult17-Jul-11 5:55
memberPIEBALDconsult17-Jul-11 5:55 
AnswerRe: Regular Expression [modified] Pin
PIEBALDconsult17-Jul-11 7:02
memberPIEBALDconsult17-Jul-11 7:02 
AnswerRe: Regular Expression Pin
JimmyRopes13-Aug-11 11:57
memberJimmyRopes13-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
nbgangsta26-May-11 2:27
membernbgangsta26-May-11 2:27 
AnswerRe: Value between brackets with a sperator character Pin
nbgangsta26-May-11 3:28
membernbgangsta26-May-11 3:28 
AnswerRe: Value between brackets with a sperator character Pin
Peter_in_278026-May-11 14:13
memberPeter_in_278026-May-11 14:13 
Questionarray of file extentions Pin
Ali Al Omairi(Abu AlHassan)22-May-11 20:43
memberAli Al Omairi(Abu AlHassan)22-May-11 20:43 
AnswerRe: array of file extentions Pin
Peter_in_278022-May-11 21:13
memberPeter_in_278022-May-11 21:13 
GeneralRe: array of file extentions Pin
Ali Al Omairi(Abu AlHassan)23-May-11 21:46
memberAli 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
memberAli Al Omairi(Abu AlHassan)2-Nov-11 23:20 
QuestionForming reguar expressions using a builder class? Pin
Naerling8-Apr-11 2:13
memberNaerling8-Apr-11 2:13 
I just started reading about regular expressions and they seem quite complex. So I am going to try really hard to understand them. But I am worried that if I ever want to use regular expressions at work I need to present a format that everyone could understand. So I was thinking something like:
Dim regEx As New RegExBuilder
 
' The entire code is pretty much self describing I think.
' Text must match from the start
' The text must start with plain text, that must be followed by a @, which must be followed by
' another sequence of text, which must be followed by a . and a 2 or 3 character domain (example: .nl or .com)
' This must be the entire text.
regEx.MatchStart.SequenceOfText.MatchChar("@").SequenceOfText.MatchChar(".").SequenceOfText(2, 3).MatchEnd
 
If Not Regex.IsMatch(TextBox1.Text, regEx.GetExpression) Then
   MessageBox.Show("This is not a valid email address")
End If
Does that exist or am I saying something really stupid? Laugh | :laugh:
I was thinking of making something like that myself, just for fun and to get to know regular expressions myself.
If I succeed and people are interested I could probably put it in an article here on CP too Smile | :)
It's an OO world.

AnswerRe: Forming reguar expressions using a builder class? Pin
Richard A. Abbott8-Apr-11 2:40
memberRichard A. Abbott8-Apr-11 2:40 
GeneralRe: Forming reguar expressions using a builder class? Pin
Naerling8-Apr-11 8:54
memberNaerling8-Apr-11 8:54 
AnswerRe: Forming reguar expressions using a builder class? Pin
PIEBALDconsult22-May-11 3:27
memberPIEBALDconsult22-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
memberPeter_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 
GeneralRe: Negative regular expression Pin
Łukasz Nowakowski5-Apr-11 2:51
memberŁukasz Nowakowski5-Apr-11 2:51 
QuestionPattern Pin
byka9-Mar-11 2:20
memberbyka9-Mar-11 2:20 
QuestionRe: Pattern Pin
Luc Pattyn9-Mar-11 2:41
mvpLuc Pattyn9-Mar-11 2:41 
AnswerRe: Pattern Pin
Pete O'Hanlon9-Mar-11 2:54
mvpPete O'Hanlon9-Mar-11 2:54 
GeneralRe: Pattern Pin
byka9-Mar-11 3:13
memberbyka9-Mar-11 3:13 
GeneralRe: Pattern Pin
Pete O'Hanlon9-Mar-11 3:26
mvpPete O'Hanlon9-Mar-11 3:26 
GeneralRe: Pattern Pin
byka9-Mar-11 3:30
memberbyka9-Mar-11 3:30 
GeneralRe: Pattern Pin
Pete O'Hanlon9-Mar-11 4:02
mvpPete O'Hanlon9-Mar-11 4:02 
GeneralRe: Pattern Pin
byka9-Mar-11 4:29
memberbyka9-Mar-11 4:29 
AnswerRe: Pattern Pin
Luc Pattyn9-Mar-11 3:19
mvpLuc Pattyn9-Mar-11 3:19 
GeneralRe: Pattern Pin
byka9-Mar-11 3:36
memberbyka9-Mar-11 3:36 
AnswerRe: Pattern Pin
Luc Pattyn9-Mar-11 3:55
mvpLuc Pattyn9-Mar-11 3:55 
GeneralRe: Pattern Pin
musefan4-Apr-11 2:55
membermusefan4-Apr-11 2:55 
GeneralRe: Pattern Pin
Luc Pattyn4-Apr-11 3:38
mvpLuc Pattyn4-Apr-11 3:38 
GeneralRe: Pattern Pin
musefan4-Apr-11 4:03
membermusefan4-Apr-11 4:03 
AnswerRe: Pattern Pin
Shahan Ayyub23-Aug-11 11:13
memberShahan Ayyub23-Aug-11 11:13 
QuestionRegex in DataAnnotations that can unmatch a input string containing not paired double quote " Pin
stevecwlee28-Feb-11 16:31
memberstevecwlee28-Feb-11 16:31 
AnswerRe: Regex in DataAnnotations that can unmatch a input string containing not paired double quote " Pin
Member 78107404-Apr-11 1:40
memberMember 78107404-Apr-11 1:40 
Questionxml regex (for php) Pin
Fresh-Grass11-Nov-10 9:12
memberFresh-Grass11-Nov-10 9:12 
AnswerRe: xml regex (for php) Pin
aspdotnetdev11-Nov-10 10:28
memberaspdotnetdev11-Nov-10 10:28 
GeneralRe: xml regex (for php) Pin
Fresh-Grass11-Nov-10 11:08
memberFresh-Grass11-Nov-10 11:08 
QuestionExpression needed Pin
Mazdak5-Sep-10 16:22
memberMazdak5-Sep-10 16:22 
AnswerCross-post Pin
Luc Pattyn5-Sep-10 16:54
mvpLuc Pattyn5-Sep-10 16:54 
AnswerRe: Expression needed Pin
OriginalGriff6-Sep-10 1:27
memberOriginalGriff6-Sep-10 1:27 
Questionhtml tag finder Pin
moein.serpico14-Aug-10 23:14
membermoein.serpico14-Aug-10 23:14 
AnswerRe: html tag finder Pin
PIEBALDconsult15-Aug-10 8:19
mvpPIEBALDconsult15-Aug-10 8:19 
AnswerRe: html tag finder Pin
OriginalGriff15-Aug-10 8:31
memberOriginalGriff15-Aug-10 8:31 
GeneralRe: html tag finder Pin
aspdotnetdev26-Sep-10 9:29
memberaspdotnetdev26-Sep-10 9:29 
AnswerRe: html tag finder Pin
aspdotnetdev26-Sep-10 9:28
memberaspdotnetdev26-Sep-10 9:28 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.160919.1 | Last Updated 26 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid