-
Notifications
You must be signed in to change notification settings - Fork 11
Core package contents
File analyzer component packages
The Core Package has no dependencies other than the standard Java Libraries. The rules within the Core package are intended to be simple rules of broad interest to many institutions.
This rule will import a delimited file (comma separated, tab separated, etc). Please specify the delimiter character to use.
This rule will parse each line of a file and add it to the results table. This rule requires an understanding of regular expressions.
This rule will parse each line of a file against a sequence of regular expressions. Resulting values are stored in named matching groups. The sequence of patterns to apply to the file are stored in a rule file.
[COLS]
FIRST,LAST,ID,COST
[PATTERNS]
# Sample Comment 1
^(?<FIRST>[^\t\-]+)-(?<ID>[^\t]+)\t(?<LAST>[^\t]+).*\$(?<COST>\d+).*$
^(?<FIRST>[^\t\-]+)-(?<ID>[^\t]+)\t(?<LAST>[^\t]+).*$
# Sample Comment 2
^(?<FIRST>[^\t\-]+)\t(?<LAST>[^\t]+).*\$(?<COST>\d+).*$
^(?<FIRST>[^\t\-]+)\t(?<LAST>[^\t]+).*$
^$
Count the number of times a key value appears in a file.
In the core package, the Counter Compliance tests apply only to text files. Use the updated version in the Demo package to parse XLSX files as well. The Counter Compliance Importer operates on a single file rather than on a collection of files.