Click here to Skip to main content

Regular Expressions

 
AnswerRe: Regular Expression PinmemberFiro Atrum Ventus11-Jul-11 23:31 
GeneralRe: Regular Expression PinmemberMorgSim12-Jul-11 0:09 
GeneralRe: Regular Expression PinmemberPIEBALDconsult17-Jul-11 6:55 
AnswerRe: Regular Expression [modified] PinmemberPIEBALDconsult17-Jul-11 8:02 
AnswerRe: Regular Expression PinmemberJimmyRopes13-Aug-11 12:57 
AnswerRe: Regular Expression [modified] PinmemberShahan Ayyub23-Aug-11 12:00 
QuestionValue between brackets with a sperator character [modified] Pinmembernbgangsta26-May-11 3:27 
AnswerRe: Value between brackets with a sperator character Pinmembernbgangsta26-May-11 4:28 
AnswerRe: Value between brackets with a sperator character PinmemberPeter_in_278026-May-11 15:13 
Questionarray of file extentions PinmemberAli Al Omairi(Abu AlHassan)22-May-11 21:43 
AnswerRe: array of file extentions PinmemberPeter_in_278022-May-11 22:13 
GeneralRe: array of file extentions PinmemberAli Al Omairi(Abu AlHassan)23-May-11 22:46 
GeneralRe: array of file extentions PinmemberAli Al Omairi(Abu AlHassan)3-Nov-11 0:20 
QuestionForming reguar expressions using a builder class? PinmemberNaerling8-Apr-11 3: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? PinmemberRichard A. Abbott8-Apr-11 3:40 
GeneralRe: Forming reguar expressions using a builder class? PinmemberNaerling8-Apr-11 9:54 
AnswerRe: Forming reguar expressions using a builder class? PinmemberPIEBALDconsult22-May-11 4:27 
QuestionNegative regular expression PinmemberŁukasz Nowakowski4-Apr-11 23:11 
AnswerRe: Negative regular expression PinmemberPeter_in_27805-Apr-11 0:42 
GeneralRe: Negative regular expression PinmemberŁukasz Nowakowski5-Apr-11 1:09 
AnswerRe: Negative regular expression Pinmemberdasblinkenlight5-Apr-11 3:47 
GeneralRe: Negative regular expression PinmemberŁukasz Nowakowski5-Apr-11 3:51 
QuestionPattern Pinmemberbyka9-Mar-11 3:20 
QuestionRe: Pattern PinmvpLuc Pattyn9-Mar-11 3:41 
AnswerRe: Pattern PinmvpPete O'Hanlon9-Mar-11 3:54 
GeneralRe: Pattern Pinmemberbyka9-Mar-11 4:13 
GeneralRe: Pattern PinmvpPete O'Hanlon9-Mar-11 4:26 
GeneralRe: Pattern Pinmemberbyka9-Mar-11 4:30 
GeneralRe: Pattern PinmvpPete O'Hanlon9-Mar-11 5:02 
GeneralRe: Pattern Pinmemberbyka9-Mar-11 5:29 
AnswerRe: Pattern PinmvpLuc Pattyn9-Mar-11 4:19 
GeneralRe: Pattern Pinmemberbyka9-Mar-11 4:36 
AnswerRe: Pattern PinmvpLuc Pattyn9-Mar-11 4:55 
GeneralRe: Pattern Pinmembermusefan4-Apr-11 3:55 
GeneralRe: Pattern PinmvpLuc Pattyn4-Apr-11 4:38 
GeneralRe: Pattern Pinmembermusefan4-Apr-11 5:03 
AnswerRe: Pattern PinmemberShahan Ayyub23-Aug-11 12:13 
QuestionRegex in DataAnnotations that can unmatch a input string containing not paired double quote " Pinmemberstevecwlee28-Feb-11 17:31 
AnswerRe: Regex in DataAnnotations that can unmatch a input string containing not paired double quote " PinmemberMember 78107404-Apr-11 2:40 
Questionxml regex (for php) PinmemberFresh-Grass11-Nov-10 10:12 
AnswerRe: xml regex (for php) Pinmemberaspdotnetdev11-Nov-10 11:28 
GeneralRe: xml regex (for php) PinmemberFresh-Grass11-Nov-10 12:08 
QuestionExpression needed PinmemberMazdak5-Sep-10 17:22 
AnswerCross-post PinmvpLuc Pattyn5-Sep-10 17:54 
AnswerRe: Expression needed PinmemberOriginalGriff6-Sep-10 2:27 
Questionhtml tag finder Pinmembermoein.serpico15-Aug-10 0:14 
AnswerRe: html tag finder PinmvpPIEBALDconsult15-Aug-10 9:19 
AnswerRe: html tag finder PinmemberOriginalGriff15-Aug-10 9:31 
GeneralRe: html tag finder Pinmemberaspdotnetdev26-Sep-10 10:29 
AnswerRe: html tag finder Pinmemberaspdotnetdev26-Sep-10 10:28 

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
Web01 | 2.8.150326.1 | Last Updated 2 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid