try these:
http://www.evolt.org/article/rating/20/22700/
that one has good references at the bottom of the page too.
http://aspnet.4guysfromrolla.com/articles/022603-1.aspx
that one is good for covering beggining basics but is still very
comprehensive.
i think i'll write my own just to facilitate "valid" pattern creation based
on a string having the pattern i'm trying to match...much like we did here.
but that may be for another day.
glad it works.
steve
"LBC" <th**********@mindspring.com> wrote in message
news:OD**************@tk2msftngp13.phx.gbl...
| Wow... worked like a champ. Thanks so much! Can you recommend a good
| reference for learning about Regular Expressions other than MSDN?
|
| Again, thanks!!
|
| LBC
|
|
| "steve" <as*@abc.com> wrote in message
| news:vp************@corp.supernews.com...
| > try this:
| >
| > Imports System.Text.RegularExpressions
| >
| > #Region " regular expressions "
| >
| > Private Function parsedText() As String
| > Dim testString As String = "[Total books]~dc000038~ + [Count of
| > desks]~fa231011~ + [Number of folders]~rs000923~ [Chicken Scratchings]"
| > Dim labelPattern As String = "(\[[^\]]*?\]){1}?"
| > Dim valuePattern As String = "(~[a-z]{2}\d+~){1}?"
| > Dim fullPattern As String = "(" & labelPattern & valuePattern & ")+?"
| > Dim options As RegexOptions = RegexOptions.ExplicitCapture Or
| > RegexOptions.IgnoreCase Or RegexOptions.Singleline
| > Dim regExp As New Regex(fullPattern, options)
| > If Not regExp.IsMatch(testString) Then Return Nothing
| > Return regExp.Replace(testString, labelPattern & "[^~]*?~{1}", "~")
| > End Function
| >
| > #End Region
| >
| >
| >
|
|