pig tutorial - apache pig tutorial - Pig - String extraction using regex ? - pig latin - apache pig - pig hadoop




REGEX_EXTRACT_ALL

  • Performs regular expression matching and extracts all matched groups.

Syntax

REGEX_EXTRACT_ALL (string, regex)

Terms

string The string in which to perform the match.
regex The regular expression.

Usage

  • Use the REGEX_EXTRACT_ALL function to perform regular expression matching and to extract all matched groups. The function uses Java regular expression form.
  • The function returns a tuple where each field represents a matched expression. If there is no match, an empty tuple is returned.

Example

  • This example will return the tuple (192.168.1.5,8020).
REGEX_EXTRACT_ALL('192.168.1.5:8020', '(.*)\:(.*)');

Related Searches to Pig - String extraction using regex

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×