I was hoping to find an expression with Regex (or better solution) that would grab the date and assign to a string - the date will always follow “Registration Date”. I don’t want anything else stored in that variable.
Hi
Hope this expression would help you resolve this
If the above value is in a string variable then
Use a assign activity and mention like this str_output = System.Text.RegularExpressions.Regex.Match(str_input.ToString,”(Registration Date:\s)(\d)+\W(\d)+\W(\d)+”).ToString.Replace(“Registration Date:”,””).Trim
For extracting a Date from a string, you can use below Regex Pattern: (\d{1,4}([.-/])\d{1,2}([.-/])\d{1,4}) . Hope it helps, Kindly try and let me know your comments