Getting null exception when trying to extract string using groups(1)
My input is
Mortgaged Vehicle: 2018 TOYOTA C-HR
I am using Regex:- (?<=Mortgaged Vehicle:\s)(\d+)\s(\w+)\s(\w.+) in Ui Path the whole input was coming fine now when I am trying to extract only TOYOTA or 2018 or C-HR I am getting null exception .
This is the expression which I have used to extract toyota :- vehicle+IEnRegEx(0).groups(2).tostring
Vehicle is my variable name which has a value =2018 TOYOTA C-HR
anything wrong I am doing here?