Posts Tagged ‘Regex’


PowerRegEx 2014

Tuesday, September 23rd, 2014 by David Corrales
Those of you who previously tried the community preview of PowerRegEx 2014 will notice that we made some significant changes to the tool. Here are some of the new features of PowerRegEx 2014 Ribbon Interface The first major change is the new ribbon interface: The ribbon interface makes it easier to access the application functions and features.   The Clipboard section contains the usual copy and paste buttons, but in addition it includes the option to copy your regular expression formatted for PowerShell and other languages: The Navigation section allows you to quickly go to a specific line in the‚Ķ   More »

Introducing PowerRegEx – Community Preview

Monday, August 26th, 2013 by David Corrales
How many times have you worked with Regular Expressions and forgotten what expression denoted what? Oftentimes I need to search online to figure out what basic expressions to use or end up using another method. For this reason we are introducing a new tool that makes regular expressions more accessible to the rest of us: PowerRegEx PowerRegEx is a regular expression building tool that provides help and real-time testing. Key Features: Makes regular expression creation and discoverability easier, by grouping RegEx constructs by category. Provides descriptions and examples on how to use each regular expression construct. Includes sample regular expressions‚Ķ   More »

VBScript Complex Regex Replace

Friday, April 24th, 2009 by Jeffery Hicks
A few days ago I posted a blog entry on simple regular expression replacements in VBScript. Let me show you a more complex example. It helps to have a purpose, even for demonstration so my need is to convert an html table to CSV output using regular expressions.   More »

VBScript Simple Regex Replace

Tuesday, April 21st, 2009 by Jeffery Hicks
Last week I talked about using Regular Expressions in VBScript. In that post I focused on simple matching. However, you can also do string replacements using the regular expression object's Replace() method. You specify a string to replace and its replacement text. I always test the expression to make sure the string exists before doing anything. Here's a function I use for this task.   More »

VBScript Regular Expressions

Tuesday, April 14th, 2009 by Jeffery Hicks
I seem to find my self turning to regular expressions more often these days, often to help out a fellow scripter in one of the many scripting forums I keep tabs on. I thought I'd take a moment and provide a brief explanation on how to use regular expressions in VBScript. First off, for those who don't know, a regular expression is a way of identifying or matching a string against a pattern. For example we all know that looks like an IP address because of its pattern. The string looks like an email address, again based on the pattern. A regular expression can be used identify strings based on a pattern.   More »

Parse HOSTS file with PowerShell

Monday, March 2nd, 2009 by Jeffery Hicks
In a recent discussion in the PowerShell forum at, a member was trying to parse the HOSTS file on a number of desktops. This is a thankless but probably useful task that seems perfectly suited to a scripted solution. What we came up with was a way to turn entries in the HOSTS file to objects in PowerShell. Once we have an object then we can do all sorts of fun things with it. Here is an enhanced version of the original solution.   More »