I have looked at the split string methods in C#, such as:
string[] lines = Regex.Split(value, "\");
Although I have come across the situation where I need to extract a file name from a file path, so I dont want to have to split the string on all occurrences of "\" e.g.:
C:\Windows\System32\calc.exe
Expected output:
calc.exe