Twitter

Why not use a CI/CD at home? At @wehkamp we use #Jenkins / #Jenkins : a match made in heaven! Read how to setup Jenki… https://t.co/2J7nHCNb9s

1 month ago

Follow

Running a single Mocha Test, just change the it( into it.only( - https://t.co/Ir7vx7YK4z via @watirmelon

2 months ago

Follow

Deploy your #dotnet application though @Bitbucket pipeline to your #dotnet ♥️ https://t.co/ykrHc9gbLV

3 months ago

Follow

Nice #Hubot talks ES6 #Hubot 🔥. Learn how to connect a simple web-service using a Promise to your #Hubot bot 🤖: https://t.co/J6cRzqpBj2

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!