Extract substring in between symbols reading from the end of a string

Hi,

There are some ways to achieve it. One of them is to use regex as the following, for example.

System.Text.RegularExpressions.Regex.Match(yourString,"[^_]+(?=_[^_]*$)").Value

Regards,

1 Like