1.2.0 • Published 4 years ago
generate-regex-from-file v1.2.0
Purpose
Generate multiple regexes from a provided .csv file and column header.
Use
:filePath is optional, current directory is default
gen-reg :fileName :headerName :filePath(optional)
Results
Regex generated will be saved into the same filePath provided (current directory is default). This file is a json with an array of matchers objects.
These objects contain a regex property containing the generated regex and a wordMatch property containing an array of names which match the regex pattern.
Bug Note
As of this release, the first column will not work for the headerName, ensure data to generate regex is not in this first column.