Extract using regex

Hi Team,
I want to extract the part between a space and comma, like my input would be “January 30, 2023” and the output would be “30”.
One more example is, input will be “March 2, 2023” and the output will be “2”. Please help

Hi,

Can you try the following expression?

System.Text.RegularExpressions.Regex.Match(yourString,"(?<= )\d+(?=,)").Value

Regards,

Hi @yash.choursia
Try this

image

I hope it will helps!!

Hi @yash.choursia
Try using the regex expression:

(?<=[A-Za-z]\s)\d+

Hope it helps!!
Regards,

Hi @yash.choursia

Hope it helps!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.