Hi All, Can someone help me to retrieve the date from a string as February 10, 2024 using Regex
Below is the string available
Expected output : February 10, 2024
Input String : February 10, 2024 Hello How are you doing .
Hi All, Can someone help me to retrieve the date from a string as February 10, 2024 using Regex
Below is the string available
Expected output : February 10, 2024
Input String : February 10, 2024 Hello How are you doing .
use assign
strvar = System.Text.RegularExpressions.Regex.Match("February 10, 2024 Hello How are you doing",".*, \d{4}").Value
cheers
Try this way,
String variable → System.Text.RegularExpressions.Regex.Match("Str variable","\D+\d+\,\s+\d+").ToString.Trim
Regards,
Gowtham K