View Single Post
Old Sep 10th, 2005, 10:33 PM   #1
brokenhope
Hobbyist Programmer
 
Join Date: Apr 2005
Posts: 126
Rep Power: 4 brokenhope is on a distinguished road
Regular Expressions -_-

Alright I looked this up, and I cant find a good resource for writing regular resourses in VB.NET, I did find how to write them though, but im not sure what to do... can someone point me in the right direction, or maybe know a resource I could use on writing reg expressions, because I just modified an example and no matter what I do its not working...

Heres what I wrote:
Dim rxpFileFormat As New Regex("(\w+) (\(\w+\))")
stFileFormat = rxpFileFormat.Replace(formFileNew.txtFileFormat, "$2")

formFileNew.txtFileFormat is something like Text (.txt) and I am trying to define stFileFormat as what is between (), so with Text (.txt) it would become .txt.
brokenhope is offline   Reply With Quote