• Skip to primary navigation
  • Skip to content
  • Skip to footer
DevOps eXtraordinaire DevOps eXtraordinaire
  • Posts by category
  • Contacts
    Ilya Ivanov

    Ilya Ivanov

    DevOps eXtraordinaire

    • GitHub
    • Linkedin
    • Huyabbix
    • Email

    Regex to match C++ style preprocessor macro defines

    This took a few days of trying…

    /^[ \t]*#define[ \t]+(\S+)[ \t]*((?:.*\\\r?\n)*.*)/gm
    

    Categories: regex

    Updated: November 12, 2018

    Twitter Facebook LinkedIn
    Previous Next

    Comments

    You May Also Enjoy

    Basic auth from victoria-metrics-k8s-stack to remote VictoriaMetrics

    Victoria Metrics has a complete Helm chart to install everything together into a k8s cluster. It’s all great, except that it’s not very smart to install a monitoring solution into the same system that it’s supposed to monitor.

    Github Torrent Action

    Here’s something I’ve been meaning to get to for a while, and finally got a chance. Enter GitHub Torrent Action!

    Install Karpenter with ArgoCD

    Today we are going to install Karpenter with ArgoCD.

    Traefik ingress: redirect HTTP to HTTPS

    Let’s say we need to set up HTTP to HTTPS redirection in Traefik ingress.

    • Posts by category
    • Feed
    © 2025 DevOps eXtraordinaire. Powered by Jekyll & Minimal Mistakes.