Grokbase Groups Pig user July 2010
FAQ
All,



I am using pig embedded in Java and need to use matches in my pig job.
However when I try to use escape characters in the pig line, the
compiler complains. How do I use complex regex while embedding?



Sample code that is throwing errors:



myServer.registerQuery("filtered = FILTER firstcut BY dIP matches
'\Q34.21.12.*\E';");



error: invalid escape sequence.



Thanks,



Matt

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupuser @
categoriespig, hadoop
postedJul 20, '10 at 8:57p
activeJul 21, '10 at 5:28a
posts2
users2
websitepig.apache.org

2 users in discussion

Matthew Smith: 1 post Anthony Urso: 1 post

People

Translate

site design / logo © 2021 Grokbase