Regular Expressions 101

Extract String Between Two Strings

Open Workspace
  • PCRE2 (PHP)
  • Match
0

Regular Expression

/
(?<=id=)(.*)(?=} Task)
/
gm

Description

Objective - Extract the task id from logs

Regex (?<=id=)(.*)(?=} Task)

Submitted by Anonymous