Community Patterns

Community Library Entry

1

Regular Expression
Created·2024-12-11 10:16
Flavor·PCRE2 (PHP)

/
^file *"?([^" ]*)"[\s\S]*?((?:{[\s\S]*?)*?}[\s\S]})
/
gm
Open regex in editor

Description

Extracts the file name and substitution pattern for each entry in an EPICS substitution file. See https://docs.epics-controls.org/projects/base/en/latest/msi.html#dbloadtemplate-format for a description of the file format being parsed

Submitted by Giles Knap