Baxiz
Baxiz

Reputation: 51

REGEX in PIGlatin

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

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

Upvotes: 1

Views: 159

Answers (1)

vks
vks

Reputation: 67968

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

You need to escape [].

Upvotes: 2

Related Questions