Allows to create a new column by using data from one of the scraped columns. Virtual column can be created by clicking on
+ Add column
button at the bottom of the parser table.
Virtual column returns raw data from source columns. Setting parsers for virtual column won't affect data in source columns and vice versa. Virtual column parser can not be swapped with another parser by using drag and drop functionality.
Source columns
are selected. Escape sequences as \n\r\t
can be used.Sometimes data points like street address, city, ZIP code and state are contained in one HTML element and can't be scraped in separate fields by using selectors. This is where Virtual column parser and Regex match parser comes in handy. To split the address field, create a Virtual column for each data point you want to extract and create a Regex match parser to extract it. See the example below. Please note that these regular expressions are written specifically for this address format.
Source address:
3879 Angus Road
New York, NY 10007
Regular expression to extract street
: ^[^\n]+
Regular expression to extract city
: \n([^\,]+)
- return capture group 1
.
Regular expression to extract state
: , ([^\s]+)
- return capture group 1
.
Regular expression to extract ZIP code
: \d+$
Virtual column in combination with Replace text parser can be used to create a column with a default value. In order to do this:
[\s\S]+
your default value
checked