REGEX in PIGlatin

161 Views Asked by At

How can we use REGEX_EXTRACT_ALL command in PIG to extract all occurrences of data within square brackets ?

Apparently '\[(.*?)\]' doesn't work.

1

There are 1 best solutions below

1
On BEST ANSWER

\\[(.*?)\\] should do it.

You need to escape [].