cellus205 0 Junior Poster in Training

Can anyone help me translate this regex match in Perl to a VB.Net Regex match? Heres the perl regex:
if ($line =~ /\\([\w\d\s\-]+?\.\w{3})\"\t\"/) { print "LINE: $1\n" } # regex match
And heres what I have for the VB regex, but its currently not working:

Dim fs As New IO.FileStream(openFileDialog1.FileName, IO.FileMode.Open)
                Dim sr As New IO.StreamReader(fs)

                Dim x() As String = sr.ReadToEnd().Split(CType(vbTab, Char))
                notebox.Text = x(1)
                While J < x.Length
                    ' Dim myMatch As System.Text.RegularExpressions.Match = System.Text.RegularExpressions.Regex.Match(x(J), "\\([\w\d\s\-]+?\.\w{3})\""\t\""")
                    If myRegex.IsMatch(x(J)) = True Then
                        Table1TableAdapter.Insert("Path", x(J), "Type", "FileSize")
                    End If
                    J = J + 1
                End While
                Table1TableAdapter.Update(TestdbDataSet.Table1)
            Catch ex As Exception
                System.Windows.Forms.MessageBox.Show(ex.Message)
            End Try
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.