How do I convert the string:
"Microsoft Windows XP Professional x64 Edition|C:\\WINDOWS|\\Device\\Harddisk4\\Partition1"
to
"Microsoft Windows XP Professional x64 Edition"
...using regular expressions?
I want to cut out all after |
symbol. Is it easy to realise it via Regex.Replace
? Where could I found syntax description for Regex.Replace
patterns?