Regular Expressions 101

Community Patterns

Azure ARM Parameter Override Reconstuct

2

Regular Expression
PCRE (PHP <7.3)

/
(?'pair'(?'d'-)(?'lcv'\w+)(?'s'\s)(?'dol'\$)(?'o'\()(?'ucv'\w+)(?'c'\)))(?'es'\n?)
/
g

Description

This helps you take a list of ARM parameters where each pair is on its own line and combine them back to a single line so you can place them in VSTS's ARM template parameter override field.

Submitted by Paul Daly - 8 years ago