I\'m trying to use regexp_extract on hive.
I have data which is varying in nature, such as:
a2=new something a1=asdasdsad;a2=old something;a3=asadasdsadsa
This simple regex will do the work:
.*a2=?(.*?);
It's your same regex but with only one capturing group (you don't need to capture what it's before the a2 key).