Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

/
(cmd|command)\s+?=\s?\\?(.*\"|concat\s?\{(?:(?:\{(?:(?:\{(?:[^{}])*\})|(?:[^{}]))*\})|(?:[^{}]))*\})
/
gm

Description

Matches the commands from Neebula Discovery Language NDL, which is used in ServiceNow Discovery Patterns.

Submitted by James Griffith - 3 years ago (Last modified 3 years ago)