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
(?<=a2=)[^;]*(?:;|$)
Try this.See demo.
https://www.regex101.com/r/rC2mH4/7