Reqex beetween word and "-"

I need to get the 49,90, it will always be between “flatrate” and “-”.

                                       Web gebyr                      499    Adhoc forh. flatrate   49,90         -249            250

Hi,

Can you try the following expression?

System.Text.RegularExpressions.Regex.Match(yourString,"(?<=flatrate\s*)\S+(?=\s*-)").Value

Regards,

@eltmo

Try this →

System.text.RegularExpressions.Regex.Match(testString.ToString.Trim,"(?<=flatrate)[\s\S]*(?=[\-])").ToString.Trim

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