String to int conversion error

showing error while converting
“Assign: Conversion from string "" to type ‘Integer’ is not valid.”,
and shown invalid cast exception,

Cint(system.Text.RegularExpressions.Regex.Replace(value_1,“[^0-9]”,“”))string
value_1 = string
G1 = int32Capture29

Hi
Hope this could help you
Convert.ToInt32(System.Text.RegularExpressions.Regex.Replace(value_1.ToString,“[^0-9]”,“”))

Cheers @dilsher_khan

You can use the Replace activity to replace with a Regex and assign directly to a variable.