Regular Expressions 101

Substring Matching Word, Hyphen, Underscores and Digits

Open Workspace
  • PCRE (Legacy)
  • Substitution
0

Regular Expression

/
([\w-]+[_][\w-]*)
/
gm

Description

Matches customer portion of call detail records found in the fields dcontext, lastdata, and usefield of an Asterisk CDR table. Additional processing required to get fully clean values.

Submitted by lindstrom