Monthly Archive

Categories

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 :

Leave a Reply