Twitter

Just created a #LEGO Brickheadz figure of my girl and me. Super happy with the result! https://t.co/t4JkJsukYT

1 month ago

Follow

Tomorrow: #meetup @wehkamp! Pizza. Beer. Subject: #meetup with chatbots. Get your own running in 5 minutes!… https://t.co/5yrtRlICxf

2 months ago

Follow

Trying to learn some #Python3 👊. Made a palindrome detector: https://t.co/pcWQOYGyCI "A man, a plan, a canal – Pana… https://t.co/pcWQOYGyCI

2 months ago

Follow

How to do proper dependency injection with IOption support in .NET Console apps? It not that hard! ♥️#csharp https://t.co/cfGSYUMc5K

3 months ago

Follow

Categories

PowerShell

$1 Regex Replacement Problem PowerShell [solved]

Madre mia! I’ve been trying to edit an HTML file using PowerShell. I only wanted to eliminate all the spans and paragraphs using regular expressions (would make sense)… and how hard can that be?
Well, it turned out to be pretty hard if you’re used to the replacement syntax of regular .Net expressions! After searching for hours I’ve discovered that $1 can’t be used in the same way as in .Net. Just use ${1}. Ouch!

JavaScript

How to use Regex Groups in Javascript

As a .Net developer I’m almost addicted to regular expressions to solve common string problems. The advantage of regex is that a lot of tools and languages use them. A drawback is that regex can be very complex and hard to read (documenting them is…