Regular Expressions 101

Capture Groups with back references

Open Workspace
  • PCRE (Legacy)
  • Substitution
0

Regular Expression

/
(^[^\\]*)\\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