I need help trimming everything in my line to the end after it encounters the first "\ 0"
So:
"test \ 1 \ 2 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0_asdfgh_qwerty_blah_blah_blah"
becomes
"test \ 1 \ 2 \ 3"
I am using C #. Help would be greatly appreciated.
Thank.
source
share