Hi Neil,

Have you tried to test your regexes in Java? I was using one of the
applets available on the web (e.g.
http://www.cis.upenn.edu/~matuszek/General/RegexTester/regex-tester.html
) to test my expressions before running a hive query and it helped me
a lot...

Usually all you need is to use double escaping, such as:
    select regexp_extract("abc def ghj","\\s(.*)\\s",1) from test limit 1;
This correctly returns a string " def ".

Best regards,
Jan
On Thu, Nov 1, 2012 at 3:05 PM, Neil Kodner <[EMAIL PROTECTED]> wrote: