Scripting Tips & Tricks: Dynamic RegEx Queries

Another week of RegEx! I just can’t get enough of it at the moment. A bit like sleep. I said sleep, not sheep! Man, I do like a good sleep. I’m writing this at an airport. It’s way past my bedtime. Anyway… what do I have for you this week? Well, I feel like a…

0

Scripting Tips & Tricks: RegEx for OU Name & Path

I ‘borrowed’ this RegEx off my esteemed colleague, Mr Raimund Andree, whilst working on site with him.   $pattern = ‘(..=)(?<Name>.*?)(?<!\\),(?<Path>.*)’   You can use this pattern to match the ‘Name’ of the OU and its parent ‘Path’ into named groups with those exact same names.   $a = “OU=TEST,DC=Halo,DC=net”,”OU=BATCH1,OU=TEST,DC=Halo,DC=net”,”OU=BATCH2,OU=TEST,DC=Halo,DC=net”,”OU=BATCH3,OU=TEST,DC=Halo,DC=net” foreach ($b in $a) {…

0

RegEx for SMTP Address Validation

Last week I opined about the cloud. None of that this week, you’ll be glad to hear. Straight to business (if you discount the last two sentences). Last week I also talked about a fabulous RegEx expression I collected during some recent B2C training. It could be used to validate password complexity. This week I’ll…

2

RegEx for Password Complexity Validation

I often hear on-premises infrastructure described as ‘legacy’. When you consider the innovation, rate of change, advantages and proliferation of cloud technologies, then I guess it’s inevitable on-prem be thought of as the distant past. The problem I have with such branding is that on-prem isn’t going anywhere, anytime soon, and ignoring its continued significance is a dangerous…

3