pig-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhen Guo <zhg...@gmail.com>
Subject matches with regular expression in pig
Date Fri, 03 Dec 2010 03:32:02 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message