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


  • Performs regular expression matching and extracts all matched groups.


REGEX_EXTRACT_ALL (string, regex)


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


  • 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.


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

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.