Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-02-18 22:13
Flavor·ECMAScript (JavaScript)

/
curl.+(\d).+\s*.+(\d{4}-\d{2}.+)\",\s*\".+\"\s*\:\s*\"([a-zA-z]*)\",
/
gm
Open regex in editor

Description

Take a text of curl command and regex them down to a list of objects with named identifiers, such as id, date, and action.

Submitted by Tre'