Get-RegexTest.ps1

# 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
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.