The regular expressions in my previous post should have been
PS> "Richard" -match "R.*
PS> "Richard" -match "[A-Z].*"
PS> "Richard" -match "[R][ic]+.*"
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 :|