Thursday, May 24, 2007

Opening a Windows Explorer window in VB.NET

Use Process.Start:

Dim ps As New ProcessStartInfo("explorer")
ps.Arguments = "C:\Directory\to\open"
Process.Start(ps)

Friday, May 18, 2007

.NET Regular Expression Escape Characters

\w - matches any word character
\W - matches any non-word character
\s - matches any whitespace character
\S - matches any non-whitespace character
\n - newline
\f - formfeed
\r - carriage return
\t - tab
\v - vertical tab
\0x0020 - space
\d - digit
^ - beginning of string
$ - end of string