I have a string field error_cd with the value "cntrlb cntrlb asdv cntrlb asvd cntrla cntrlb cntrlb"
Within PIG, I'm trying to use REGEX_EXTRACT_ALL(error_cd, '.*(cntrl[a-b]).*')
to get back a tuple of (cntrlb,cntrlb,cntrlb,cntrla,cntrlb)
or just (cntrl,cntrl,...,cntrl)
. Instead, I'm getting back just one match (cntrl)
.
Anybody know how to return all of the matches, as the function name implies?