Powershell Tricks And Simple Problems With Regex -matches
I wasted almost two hours on this today. The goal was simply to create a function to pull out a 5 digit zip code from a string. Three Powershell lessons learned : 1) using -match will return an additional $true/$false from a function unless you “swallow” the value into a variable. http://stackoverflow.com/questions/27193956/extracting-data-from-the-matches-hashtable-after-a-powershell-regeg-match 2) return doesn’t […]