Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2020-02-13 16:26
Flavor·PCRE (Legacy)

/
^ TARGET_DRIVER\s+(?P<target_driver>[^\s]+)\s+ (?P<target_content>[\s\S]+?) (?=^HANDLER|^TARGET_DRIVER|\Z)
/
gmx
Open regex in editor

Description

Parse a portion of the SCST conf file. This separates the TARGET_DRIVER into a named 'target_driver' and 'target_content'

Submitted by anonymous