Hi ,
I have data in the following format:
NOT_HOMOLOGATED-(UNKNOWN)
HOMOLOGATED-(Thomson SpeedTouch ST510 V6 versao 6.2.15.7 or ST585 v6)
NOT_HOMOLOGATED-(UNKNOWN)
HOMOLOGATED-(ZTE ZXDSL 831 II V7.5.02_E09_BR1)
NOT_HOMOLOGATED-(UNKNOWN)
NOT_HOMOLOGATED-(UNKNOWN)
HOMOLOGATED-(ZTE ZXDSL 831 II V7.5.02_E09_BR1)
HOMOLOGATED-(Thomson SpeedTouch ST510 V6 versao 6.2.15.7 or ST585 v6)
I would like to extract value with in the brackets i.e extracted values should be:
UNKNOWN
Thomson SpeedTouch ST510 V6 versao 6.2.15.7 or ST585 v6
UNKNOWN
ZTE ZXDSL 831 II V7.5.02_E09_BR1
and so on . . . . .
Can any one help me out in writing regex for this as it is not flexible with substring?
Thanking you in advance.
Hi kavyatim,
something like
YourFancySearch | rex "\((?<myField>.*)\)"
should work fine for you.
Here is a link to a page were you can test regex on your data.
hope this helps ...
cheers, MuS
Hi kavyatim,
something like
YourFancySearch | rex "\((?<myField>.*)\)"
should work fine for you.
Here is a link to a page were you can test regex on your data.
hope this helps ...
cheers, MuS