Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 337 Bytes

useful regexes.md

File metadata and controls

15 lines (10 loc) · 337 Bytes

Useful regexes

paramfieldnames

Grab all fieldsnames in configs that don't have a paramfieldname right after it

/^(?<front>.+)"(?<key>FieldName)":."(?<value>\$?\w+)",(?!\n.+"ParamFieldName")$/gm

Add a paramfieldname below it as the lowercase of the fieldname with this replace regex

$&\n$1"Param$2": "\L$3",