Welcome to 2009 - where we've got a LOT of great stuff lined up for you. First of all, our "Monsters of Tech" class in Denver this coming April is still open for registration, and we've lowered the per-student price to just $2,000 for the entire week. Check out the Read the full story »
Features

These ongoing series of articles bring you new content on a weekly, biweekly, or monthly basis. Check back often!

Jack of All Tech

The minimum you need to know about the varied technologies that you support - even though they’re not really your thing.

Just for Fun

A little off-topic, but still eminently interesting: Gadgets, hobbies, contests, giveaways, and whatever pops into our minds.

Musings

Our take on what’s happening in the IT world - and most importantly how we think it’ll affect you. What do YOU think?

Windows Admin

Managing (and automating) Windows servers and desktops, including scripting and Windows PowerShell

Home » Archive by Tags

Articles tagged with: regex

Weekly Shell: RegEx and Switch I recently needed to write a script that accepted domain credentials. The problem is that there are two ways of providing these in Windows: The old DOMAIN\USER way from NT, and the newer user@domain UPN format that Active Directory introduced. The code I was writing could use either, but needed
Weekly Shell: Select-String and Regular Expressions So here's where last week's post on regular expressions came into a real-world scenario for me. I needed to comb through an IIS log file and find every IP address that was hitting a particular Web page on a Web site. Actually, I needed to comb through a bunch of
Weekly Shell: Fun with RegEx’s I've had some fun working with regular expressions in PowerShell recently. Take this beauty: ^\\\\\w+(\\\w+)+ It's a UNC path. The ^ anchors the start of the string, making strings like "this\\Server\path" illegal; the double backslash ("\\\\" in the regex, because backslash is a special character and has to be escaped