Let's assume that we have a large csv with column headings each of which has a specific request
and we need to check the data, you can do this by setting up such a formatted csv file:
- The column name (must be the same as the fields defined in the first row of the data file)
- choose L, R, C, CI, E, EI (Length, Regex, Choice, Choice Ignorecase, Equals, Equals Ignorecase). The old codes S, SI, U and UI still work as aliases of C, CI, E and EI.
- Comparison (<, <=, =, > =, >, used only for Length
- Value, the value
Let's see an examples:
"name","L","<","10"
"surname","L","<","10"
"age","R","","\\d{1,3}"
"sex","CI","","F|M"
"programmer","E","","bertolottipf"
name must be length less then ten characters.
surname also must be length less then ten characters.
age must have from 1 to 3 numbers.
sex must be "M" or "F" but can also be in lowercase.
programmer must be "bertolottipf".
Saved validators: after choosing a validation file you can Save it for later with a name,
and in the generator Save keeps the validator you are building. Next time pick it from
Saved validators instead of choosing the file, open it in the generator () to change it,
or delete it (). They are kept only in this browser (local storage), never on the server.
Spreadsheets: both the data file and the validation file can also be a spreadsheet
(.xlsx, .xls, .xlsm, .xlsb, .ods): it is converted to CSV in your browser.
If it has more sheets, choose the one to use under the file. Values are taken as the spreadsheet shows them (formatted dates and numbers);
the delimiter and enclosure of step 2 are not needed, the exported CSV uses the data ones.
Data by hand and saved data: Enter the data by hand creates an empty table with the columns you choose
(the columns of the selected validator are proposed). In the table you can add rows (Enter in the last row, or ),
delete them ( next to the row number), add columns and Save the data with a name.
A data file can also be saved with Save for later. Next time pick it from Saved data instead of choosing the file,
or open it in the table () to change it.
Into the spreadsheet you can copy cells with CTRL + mouse click (also dropping that one) and move from cells with CTRL + ALT + arrow buttons.
Enter moves to the cell below, Shift+Enter adds a new line inside the cell.
In the dialogs (e.g. "Add column") Enter confirms and Esc closes.