You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Prashant Kommireddi <pr...@gmail.com> on 2012/01/03 10:28:18 UTC

Re: Regex substitutions

Hi Grig,

Have you tried the REPLACE UDF?
http://pig.apache.org/docs/r0.9.1/api/org/apache/pig/builtin/REPLACE.html

Thanks,
Prashant

On Wed, Dec 21, 2011 at 12:08 PM, Grig Gheorghiu
<gr...@gmail.com>wrote:

> I know regex matching is provided via EXTRACT, but is there any such
> functionality for regex substitution? Or do I need to write my own UDF
> for that?
>
> Thanks,
>
> Grig
>

Re: Regex substitutions

Posted by Grig Gheorghiu <gr...@gmail.com>.
Hi Prashant,

I knew about REPLACE, but it's not sufficient for what I need. I
actually need a proper regex functionality. I'll try to write my own
UDF I guess.

Thanks for your reply,

Grig

On Tue, Jan 3, 2012 at 1:28 AM, Prashant Kommireddi <pr...@gmail.com> wrote:
> Hi Grig,
>
> Have you tried the REPLACE UDF?
> http://pig.apache.org/docs/r0.9.1/api/org/apache/pig/builtin/REPLACE.html
>
> Thanks,
> Prashant
>
> On Wed, Dec 21, 2011 at 12:08 PM, Grig Gheorghiu
> <gr...@gmail.com>wrote:
>
>> I know regex matching is provided via EXTRACT, but is there any such
>> functionality for regex substitution? Or do I need to write my own UDF
>> for that?
>>
>> Thanks,
>>
>> Grig
>>