from the above string I want to pick only OPX value, I will be having dyanmic values during each refresh, so the line to have OPX value, how can I pick that value alone?
Now, in this above two lines I want to get the word next to PGD and PMP, so in the above example i want to get the values as Autotrader for the lone 1 and DFV for the line 2. How can i get?
For checking OPX is there or not, please use the below syntax - YourString.ToString.Trim.ToUpper.Contains(βOPXβ)
For getting the next word after PGD, please use the below Regex Syntax - System.Text.RegularExpressions.Regex.Match(YourString,"(?<=PGD_)[A-Za-
z]+(?=_)").ToString.Trim
For getting the next word after PMP, please use the below Regex Syntax - System.Text.RegularExpressions.Regex.Match(YourString,"(?<=PMP_)[A-Za-
z]+(?=_)").ToString.Trim
If you want to fetch the word after PGD or PMP dynamically then, please use the below syntax - System.Text.RegularExpressions.Regex.Match(YourString,"(?<=(PGD|PMP))[A-Za-
z]+(?=)").ToString.Trim