Hello all, how am I suppose to extract only year from the text I got?
As you can see, there are some text before and after 2013 year. I need to extract only year from this text.
What is the best option to extract year part of the text since I have many cases of extracting year(There are years from 2001 to 2019).
To get text from textboxes I’m using Get Text activity.
Fine once after getting the text with get text activity and stored in a variable named strinput
Use this expression in a assign activity Stroutput = Split(strinput.ToString,” “)(2).ToString
Sometimes more words might come before the year term or another four digit come before year value
In that case use a assign activity like this Str_output = System.Text.RegularExpressions.Regex.Match(strinput.ToString,”[0-1][0-9]”).ToString.Trim