I have a question and answer like this. The answer is in the next line. How can i extract the answer using Regex ?
What is your name ?
John Doe
Regards Sukumar
I have a question and answer like this. The answer is in the next line. How can i extract the answer using Regex ?
What is your name ?
John Doe
Regards Sukumar
I have attached a xaml file for ur reference
1.> 1st try to some how get the data which includes both the question and answers line.
-Get Text would work fine .
2.> Store in a string variable.
3.> Split - o/p will be an array .
4.> Display array element
Cheers
Main.xaml (8.5 KB)
Warm Regards,
Prashant Singh
Rather using regex, You can do this:
next_element will contain your answer.
if you want you use regex then use this:
\?(.*) your will get your string in first groupregex.Match(“String after ? character using regex”, “?(.*)”).Groups(1).ToString