RegExtract

Description

Extracts text from a field that matches the pattern of the regular expression entered. A new column is created for the results. (List)

Hero Platform_'s RegExtract uses RE2 Syntax for regular expressions.

For more support on writing regular expressions, contact a support representative.

Use

  • Select an argument. (String)
  • Enter an output field name.
  • Enter a regular expression to apply to the argument's value.
  • Click OK.

Example

Hashtags

In this example, the text strings come from Twitter.

The user wants to extract all the hashtag words from the text.

Example Field StringRegular expression valueResult
If you're looking to implement any #ArtificialIntelligence project, check out our step-by-step guide. #AI#[a-zA-Z]+[#ArtificialIntelligence, #AI]

Hero Platform_ Example

An example of this function can be found in Hero Platform_'s library of examples.

Download the example titled "function_RegExtract" to see an example of this function. 

Type

Formulas