[Solved-1 Solution] Remove single quotes from data using Pig ?
How to remove single quotes from data using Pig ?
To remove '(' ')' and '(single quote) characters from your input.
- Just Replace () with double backslash \\(\\).
- '(single quote) is special character in Pig(default string literal), so this also required double backslash to remove the special meaning but double backslash doesn't convince pig parser(you will get error for double backslash) that is the reason i used three backslash for single quote \\\' to remove the special meaning.
-  is character class, this will match only one out of several characters. Simply place the characters inside the square bracket that you want to match ie. in our case its [()'].
- + symbol is for matching one or more characters.
Here is the input