How to extract only numeric value from a particular String element

MyString = {“27th”,“Mar”,“2001”}
Need output like :
MyString = {“27”,“Mar”,“2001”}
only for Mystring(0)

@Haarish_S

Please try this

Mystring(0) = System.Text.RegularExpressions.Regex.Match(mystring(0),"\d+").Value

Cheers

It worked perfectly bruh!