Using Text Parser

AlayaCare Support Associate
AlayaCare Support Associate
  • Updated

⚠️Please note that the module dialog fields displayed in bold (within the AlayaCare Connector scenario, not in this documentation article) are mandatory. ⚠️

Get Elements from HTML

This retrieves the desired elements from an HTML code.

Continue the execution of the route even if the module returns no results  If enabled, the scenario will not be stopped by this module.
Element type Select the type of element you want to retrieve from the HTML code. Imagelink, or iframe element(s).
HTML Enter the HTML code you want to retrieve the specified element types from.

 

HTML to Text

HTML Enter the HTML code you want to convert to plain text.
Line break Select the type newline (line break). Detailed information about the line break can be found on Wikipedia.
Uppercase headings
The text enclosed in the heading tags (e.g., <h2> </h2>) will be converted into uppercase text.

 

Match Pattern

The Match pattern module enables you to find and extract string elements matching a search pattern from a given text. The search pattern is a regular expression (aka regex or regexp), which is a sequence of characters in which each character is either a meta character, having a special meaning, or a regular character that has a literal meaning.

2019-01-25_11_27_13-Window.png

Pattern

Enter the regular expression pattern. For example, [+-]?(\d+(\.\d+)?|\.\d+)([eE][+-]?\d+)? extracts all numerals in the provided text.

The pattern will contain at least one capture group in parenthesis () for the output bundle to contain some items. If the pattern does not contain any capture groups, the output bundle will be empty:
mceclip0.png 
Global match If enabled, then the module retrieves all matches in the text. If disabled, then the module retrieves only the first entry.
Case sensitive You can disable the case sensitivity by disabling this option (default=case sensitive).
Multiline If checked, beginning and end meta characters (^ and $) will match the beginning or end of each line, not just the very beginning or end of the whole input string.
Continue the execution of the route even if the module returns no results  If enabled, the scenario will not be stopped by this module.
Text Enter the text you want to match the pattern.

 

Replace

This searches the entered text for a specified value or regular expression, and replaces the result with the new value.

Pattern Enter the search term. You can also use a regular expression. For more details about the regular expression, refer to the Match Pattern module.
New value Enter a value that will replace the search term.
Global Match If this option is enabled, the module will find all matches rather than stopping after the first match. Each match will be output in a separate bundle.
Case sensitive If this option is enabled, the search will be case sensitive.
Multiline If checked, the beginning and end meta characters (^ and $) will match the beginning or end of each line, not just the very beginning or end of the whole input string.
Text Enter the text to be searched.

 

Data Scraping

Sometimes called web scrapingdata extraction, or web harvesting, data scraping is the process of collecting data from websites and storing it in your local database or spreadsheets. If you wish to scrape data from a website and you are not familiar with regular expressions, consider the following:

If the data scraping tool provides a REST API, you can connect to it via our universal HTTP and Webhooks modules.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.