Click here to Skip to main content
15,885,366 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
QuestionValue between brackets with a sperator character [modified] Pin
Groulien26-May-11 2:27
Groulien26-May-11 2:27 
AnswerRe: Value between brackets with a sperator character Pin
Groulien26-May-11 3:28
Groulien26-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 PinPopular
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 
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:
VB
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
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
mvePIEBALDconsult22-May-11 3:27 
QuestionNegative regular expression Pin
Łukasz Nowakowski4-Apr-11 22:11
Ł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
Łukasz Nowakowski5-Apr-11 0:09 
AnswerRe: Negative regular expression Pin
dasblinkenlight5-Apr-11 2:47
dasblinkenlight5-Apr-11 2:47 
GeneralRe: Negative regular expression Pin
Łukasz Nowakowski5-Apr-11 2:51
Łukasz Nowakowski5-Apr-11 2:51 
QuestionPattern Pin
byka9-Mar-11 2:20
byka9-Mar-11 2:20 
QuestionRe: Pattern Pin
Luc Pattyn9-Mar-11 2:41
sitebuilderLuc Pattyn9-Mar-11 2:41 
AnswerRe: Pattern Pin
Pete O'Hanlon9-Mar-11 2:54
mvePete O'Hanlon9-Mar-11 2:54 
GeneralRe: Pattern Pin
byka9-Mar-11 3:13
byka9-Mar-11 3:13 
GeneralRe: Pattern Pin
Pete O'Hanlon9-Mar-11 3:26
mvePete O'Hanlon9-Mar-11 3:26 
GeneralRe: Pattern Pin
byka9-Mar-11 3:30
byka9-Mar-11 3:30 
GeneralRe: Pattern Pin
Pete O'Hanlon9-Mar-11 4:02
mvePete O'Hanlon9-Mar-11 4:02 
GeneralRe: Pattern Pin
byka9-Mar-11 4:29
byka9-Mar-11 4:29 
AnswerRe: Pattern Pin
Luc Pattyn9-Mar-11 3:19
sitebuilderLuc Pattyn9-Mar-11 3:19 

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.