Use 'abc\\|.*', '\' is also a special character in java that should
been escaped.




On Fri, Dec 3, 2010 at 11:34 AM, Zhen Guo <[email protected]> wrote:
> Hi all,
>
> In pig, we can do pattern matching with regular expression. For a pattern
> like "abc|.*", how to write the regular expression?
>
> I tried the following:
>
> A = FILTER B BY (name matches 'abc\|.*');
>
> but it does not work. I cannot use 'abc|.*' because it will match anything.
>
> Any ideas are appreciated.
>
> Thanks,
>
> Zhen
>



-- 
Best Regards

Jeff Zhang

Reply via email to