Good afternoon, I am carrying out an automation and I have to obtain the text of a scanned pdf and from everything obtained I need to search for a specific word and show what follows after that word. Can someone help me please.
For example, I have a text that says “Please read our Forum FAQ - Beginner’s Guide before creating a new post. If you want to report a bug”, I need you to bring me everything that goes after “post” and “report”.
You are using Regex.IsMatch so it checks if there is a match in the string with the regex. Instead you can do System.Text.RegularExpressions.Regex.Match(String,Regex).Value.ToString
The above can be directly used in an assign activity. So left will be variable you want to save it in and right will be System.Text.RegularExpressions.Regex.Match(String,Regex).Value.ToString.
If you want to do using activities, use find matching pattern, where result will give an array of matches and first Match will give a string result.