My view ... RegExp syntax is fairly limited in scope and relatively easy to learn. Powershell is a whole other beast.
I have used a fantastic tool to work with and develop RegExp for a few years now and the small investment has paid over time and again ..
https://www.regexbuddy.com/ recommend it highly !!
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Edward Leafe Sent: Saturday, 22 October 2016 7:36 AM To: profoxtech@leafe.com Subject: Re: Speeding up a Powershell script
On Oct 21, 2016, at 1:53 PM, Gene Wirchenko genew@telus.net wrote:
+1. It's like the UberNerds who want to obfuscate just for the "fun" of
it to be UberNerds. I felt similar about RegExp.
Regexes can be great, but I resist the temptation to make long
regexes. That gets in write-only code all too fast. Instead, I might use a couple of shorter ones with a bit of glue code.
Complex? Just add comments!
http://www.diveintopython.net/regular_expressions/verbose.html
-- Ed Leafe
[excessive quoting removed by server]