I have an issue with the Regex to find the exact string from the given Input txt and also it’s number.
Note: I need these values in two different variables(one to find GROOT in the given string and the other one if for the number corresponding to it if found).
String to be found- strPetName - GROOT
Input String - in_StrInput -
1) I AM GROOT
3) GROOT IS MY PET’S NAME
4) GROOT’S HAPPY
5) GROOT - 2
Expected outputs should be like below,
out_IntNum = 2 (this can be string as well, it does not matter)
boolPetNameFound = True
Unfortunately, I can not share xamls or Input texts examples, hence using my pet’s name as a reference
Thanks in advance,