I am using regex to get an amount from an invoice. Assing activity: Value = System.Text.RegularExpressions.Regex.Match(file,"(?<=Importe solicitado a devolver )(\d|.|,)*").Value.ToString.
After that, I want to convert the variable Value to Val (Double), so I can multiply the amount by -1 and paste in an exce file.
The problem appears at assigning Val = Convert.ToDouble(Value). It appears this message: “The input string is not in the correct format.”.
Do you know how can I solve this issue?
PD: I have also tried Val = Double.Parse(Value).