0

What's the equivalent of REGEX_EXTRACT_ALL in Hive? I'm trying to get all matched occurrences of a regular expression in Hive or Redshift.

1 Answers1

-2

Have a look at REGEXP_SUBSTR. Doesn't have to the ability to return a specific capture group but you should be able to accomplish most of the same things using look ahead and look behind patterns. http://docs.aws.amazon.com/redshift/latest/dg/REGEXP_SUBSTR.html

Joe Harris
  • 13,671
  • 4
  • 47
  • 54