Field Types. Data Formatting and Normalization
Data normalization is the process of structuring parsed data. You may want to eliminate unwanted spaces and special characters, convert comma-separated numbers to decimal-separated etc.
This can be done using Field Types. Parsio supports 9 built-in types:
- Multi-line Text
- Single-line Text
- Raw ("Keep as Source")
- URL
- Downloadable (External) Document
- Date
- Time
- Date and Time
- Number
- Address
Note that these settings are defined at the Mailbox level, e.g. all the templates in the mailbox will share the same types for the same fields.
1. Multi-line Text
The Multi-line Text type comes with a couple of post-processing operations:
-
- Remove all the HTML tags from the found text.
- Decode HTML entities to their corresponding characters (e.g. & will become & etc).
Example: an anchor tag <a href="https://example.com" target="_blank">Click Here</a> will be converted to "Click Here".
This field type preserves paragraphs.
2. Single-line Text
The Single-line Text type is similar to Multi-line Text but removes all the line breaks keeping the value as a single paragraph.
3. Keep as Source
The Raw field type ("Keep as source") simply keeps the found value "as is" without any additional formatting.
4. URL
This field type allows you to to extract "hidden" URL addresses from links and buttons. Alternatively, you can extract it from the source code (Raw tab).
5. Email
Similarly to the URL field type, it allows you to to extract "hidden" email addresses from links and buttons. Alternatively, you can extract it from the source code (Raw tab).
6. Downloadable (External) Document
The Downloadable document allows to parse external documents. If the parsed value is a valid URL, Parsio will try to download the linked document: PDF file, HTML page, Excel, CSV, DOCX etc.
The file must be publicly available, e.g. you should not enter login / password to access it.
7-9. Date, Time, Date and Time
Dates and times come in a variety of formats into your mailbox. Sometimes the date format may be quite ambiguous to parse:
- 11/07/2022. In different countries this can be either the 11th of July or the 7th of November.
To disambiguate that situation, Parsio allows you to specify the input and output format for your Date, Time and DateTime field types. You can find these settings under your Mailbox > Settings page:
If you leave the input fields empty, Parsio will try to "guess" the correct date & time formats. In the case where Parsio can't parse a field, its value will be kept unchanged.
Date Formats
Weekday
-
d0..6ddSudddSunddddSunday
Year
-
YY13YYYY2013
Month
-
M1..12 (Jan is 1)Mo1st..12thMM01..12 (Jan is 1)MMMJanMMMMJanuary
Quarter
-
Q1..4Qo1st..4th
Day
-
D1..31Do1st..31stDD01..31
Day of year
-
DDD1..365DDDo1st..365thDDDD001..365
Week of year
-
w1..53wo1st..53rdww01..53
Time Formats
24h hour
-
H0..23HH00..23
12h hour
-
h1..12hh01..12
Minutes
-
m0..59mm00..59
Seconds
-
s0..59ss00..59
AM/PM
aamAAM
Timezone offset
Z+07:00ZZ+0730
- Unix timestamp:
X - Millisecond Unix timestamp:
x
Here are some examples:
YYYY-MM-DD2014-01-01dddd, MMMM Do YYYYFriday, May 16th 2014dddd [the] Do [of] MMMMFriday the 16th of Mayhh:mm a12:30 pm
10. Number
The Number format removes any spaces and special characters from the parsed value. Additionally, you can convert comma-separated numbers to decimal-separated and vice versa. You can find these settings under your Mailbox > Settings page:
In the case where Parsio can't parse a numeric field, its value will be kept unchanged.
11. Address
The Address field format converts a freeform text address to a structured format.
Example. Let's say you captured the following address: 1 Piazza del Colosseo 00184 Roma.
Parsio will store it as a field with multiple properties:
If, however, Parsio is unable to convert the parsed text in a structured address format, the resulted value will be:





