How can we use REGEX_EXTRACT_ALL command in PIG to extract all occurrences of data within square brackets ?
Apparently '\[(.*?)\]'
doesn't work.
How can we use REGEX_EXTRACT_ALL command in PIG to extract all occurrences of data within square brackets ?
Apparently '\[(.*?)\]'
doesn't work.
Copyright © 2021 Jogjafile Inc.
\\[(.*?)\\]
should do it.You need to escape
[]
.