Time to Use Regular Expressions More, Um, Regularly by Mark Minasi

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=706SP4xhPm0



Duration: 1:37:13
81 views
2


Time to Use Regular Expressions More, Um, Regularly by Mark Minasi

Text data is a pain. Whether it's checking files for SSNs, verifying that a password is complex enough, or updating every page in your web site, text is a pain. Now, you probably know that "regular expressions" could help, but aren't they really hard? Well, not if Mark Minasi's explaining them.
Is that a valid email address, or just a SQL injection attack? Does that folder full of Word files contain any credit card or bank routing numbers? Does that proposed password meet our requirements? How can I easily extract just a few important bits of weather data from a page full of raw HTML? If you've been coding or scripting for any time at all, then you already know the answer -- "regular expressions" or "regexes." But if you're like most of us, regex is one of those "I'll get around to it one day" things, and while "\d=digit, \s=white space, etc" is relatively easy to learn, regex soon becomes essentially opaque. ("Isn't that line noise?" is the one of the more polite observations one hears.)
In this "medium-deep dive," award-winning author, teacher and veteran of more text processing debacles than he prefers to remember Mark Minasi shines a light on how regex works and offers tips on how to get the best out of it. In this session, you'll learn a minimum of regex, which then enables us to get an in-depth knowledge of how the regex "engine" works -- knowledge which is the key to getting anything done in regex. Then you'll see how PowerShell's regex engine -- which is really .NET's regex engine -- can be configured and how it behaves differently from other regex engines. (It's astounding how easily you can build an infinite loop with regex, so you're REALLY going to want to know how to set up regex timeouts.) With that out of the way, we'll then cover regex syntax with lots and lots of examples, as well as some nice regex prototyping tools.
Very few tools in the computing business are as old as regex or as cross-platform, and yet in the domain of text processing virtually nothing exceeds regex's power. It would, then, be a terrible shame if you didn't have some familiarity with this old friend. In short, attend this session because Mark "sed" so!
Now and then, I get the itch to find something that's been around FOREVER, that everyone really, really OUGHT to know -- and they know it, back in that awful "stuff I really should learn one of these days" list we all have -- and make it useful and understandable.




Other Videos By Confreaks


2022-01-13Getting started with Just Enough Administration (JEA) by Jason Helmick
2022-01-13PlatyPS: PowerShell Help meets Markdown by Sergei Vorobev
2022-01-13PowerShell Team: Inventory Your Server Environment and Detect Change at Scale by Jenny Hunter
2022-01-13The Build Release Pipeline Model for Mere Mortals by Ryan Coates
2022-01-13PowerShell Team: Orchestrating Tasks across Hybrid Environments using ... by Eamon O'Reilly
2022-01-13Why you should embrace OpenSource. Jenkins-PowerShell-Containers by Gabriel Rojas
2022-01-13PowerShell Team: Managing Server State using Configuration as Code by Michael Greene
2022-01-13Defending against PowerShell attacks - in theory, and in practice by Lee holmes
2022-01-13OpenSSH Internals for PowerShell Pros by Anthony Nocentino
2022-01-13Writing Award Winning PowerShell Functions and Script Modules by Mike Robbins
2022-01-13Time to Use Regular Expressions More, Um, Regularly by Mark Minasi
2022-01-13Developing with PowerShell Classes: Here be Dragons by Brandon Olin
2022-01-13Building PowerShell Applications that Operate on a Planetary Scale by Justin Sider
2022-01-13Become a PowerShell Debugging Ninja by Kirk Munro
2022-01-13DSC vs. "The Others" - A Song of Configuration Management by Missy Januszko
2022-01-13Connecting the Dots with PowerShell by Warren Frame
2022-01-13Building cmdlets for a REST API with PowerShell classes, Azure-based ... by Jeremy Murrah
2022-01-13Deploy Infrastructure As A Service with Azure Resource Manager Templates by Will Anderson
2022-01-13PowerShell Team: PowerShell Core by Joey Aiello
2022-01-13One MOF to rule them all, and in the Azure bind them by Jacob Morrison
2022-01-13Team Leadership Session by Michael Greene & Joey Aiello