2 responses to “2008 Scripting Games – Solutions for Advanced Event 1”

  1. Andy

    We had pretty similar approaches, although the way i built my regex was pure ugliness. Your’s is much nicer, and definitely more powershelley.

    Andy

    http://www.get-powershell.com

  2. Chris Warwick

    Hi Joel,

    Thanks for the articles – I’m picking up different tips from all over the place:-)

    My solution is very similar to yours (http://chrisjwarwick.spaces.live.com) but I didn’t think about using [string]::join() – there’s always something to overlook!

    Couple of comments for you: Select-string has a -list switch to make it return a single match; and, as someone pointed out to me, you don’t need the [int] in the [int][string] cast – although I haven’t thought about why that should be yet:-)

    Thanks again
    Chris