# Get-RegexTest.ps1 # Sample Using PowerShell # Thomas Lee - tfl@psp.co.uk # Define a regular expression for currency values. $rx = New-Object system.text.RegularExpressions.Regex "^-?\d+(\.\d{2})?$" # Define tests $tests = "-42" , "19.99" , "0.001" , "100 USD" , ".34" , "0.34"
Read More...
Read the complete post at http://pshscripts.blogspot.com/2008/12/get-regextestps1.html
Posted
Dec 21 2008, 01:57 PM
by
PowerShell Scripts