Regular Expressions 101

Community Patterns

Capture Groups with back references

0

Regular Expression
PCRE (PHP <7.3)

/
(^[^\\]*)\\t([^\\]*)\\t([^\\]*)\\t([^\\]*)\\t([^\\]*)(.*)
/
gm

Description

Extracting the variable names, e.g. (DOB_TT, OSTATE, etc) by setting up capture groups and extracting the 5th capture group

Submitted by anonymous - 2 years ago