Correction

The regular expressions in my previous post should have been

PS> "Richard" -match "R.*
True

PS> "Richard" -match "[A-Z].*"
True

PS> "Richard" -match "[R][ic]+.*"
True

The * of a wildcard has to be replaced by .* which means any character except a new line any number of times including zero.

Thanks to Jaykul for pointing out the error

 

Share this post :

 

Read the complete post at http://richardsiddaway.spaces.live.com/Blog/cns!43CFA46A74CF3E96!1886.entry

Published Mon, Nov 24 2008 16:17 by Richard Siddaway's Blog
Filed under: