Books
Translate This Blog
-
Recent Posts
Top Posts
- Querying UDP Ports with PowerShell
- Changing Ownership of File or Folder Using PowerShell
- Starting,Stopping and Restarting Remote Services with PowerShell
- Avoiding System.Object[] (or Similar Output) when using Export-Csv
- Quick Hits: Finding Exception Types with PowerShell
- Locating Mount Points Using PowerShell
- Building a Chart Using PowerShell and Chart Controls
- Using PowerShell Parameter Validation to Make Your Day Easier
- PowerShell and Excel: Adding Some Formatting To Your Report
- Quick Hits: List All Available WMI Namespaces Using PowerShell
Archives
Categories
- .net
- api
- array
- background jobs
- binary
- book
- c#
- clock
- codeplex
- com object
- convert
- CTP
- database
- deep dive
- excel
- Favorites
- function
- groups
- guest blog
- hash table
- Internet Explorer
- ise
- mcpmag
- module
- MVP
- network
- news
- parameter
- patches
- performance
- pinvoke
- podcast
- port
- PoshChat
- poshpaig
- PoshRSJob
- poshwsus
- powercli
- powerscripting
- Powershell
- printers
- quickhits
- reflection
- regex
- registry
- Regular Expressions
- report
- resolution
- runspace
- runspaces
- scripting games 2012
- scripting games 2013
- scripting guy
- scripts
- SMO
- Speaker
- speaking
- SQL
- tcp
- tips
- tsql
- updates
- user group
- V3
- V4
- v5
- weather
- widget
- win32API
- winter scriting games 2014
- wmi
- word
- WPF
- wsus
- xaml
Tag Archives: regex
A Look at a RegExHelper Tool for PowerShell Regular Expressions
I don’t know about you, but writing a regular expression can sometimes be a lesson in patience when putting a pattern together to parse a log file or provide some sort of validation of input. Each time I need to … Continue reading
Reversing a String Using PowerShell
So how many times do you sit at your desk thinking “How can I easily reverse this string output?”. Probably not at all. But in the case where I needed to do this while working on a future article, I … Continue reading
Creating a Report of Log File Data using Regular Expressions, Arrays and Hash Table
As I was checking my email early in the morning, I saw an email from co-worker asking me to write a script to parse through some logs that were generated from another script that listed the date the script is … Continue reading
Posted in powershell, scripts
Tagged array, hash table, logs, Powershell, regex, Regular Expressions
5 Comments
Powershell, Regular Expressions And You!
“^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$” Pretty scary, isn’t it? While most of you will never have to build something this long and complex, it still is a nice idea to learn how to use Regular Expressions in your scripts when you need to look … Continue reading