Is there an easy way to remove all chars before a \"_\"? For example, change 3.04_somename.jpg to somename.jpg.
Any suggestions for where t
Variant of Tim's one, good only on some implementations of Regex: ^.*?_
var subjectString = "3.04_somename.jpg";
var resultString = Regex.Replace(subjectString,
@"^ # Match start of string
.*? # Lazily match any character, trying to stop when the next condition becomes true
_ # Match the underscore", "", RegexOptions.IgnorePatternWhitespace);