I have a couple of strings and I want them to be transformed like shown below
In the first two examples " is included in the input string.
But " does not comes always with the input string as shown in last two examples.
Basically I need the string between |" and "| or string between first and last occurrence of |
Can someone please let me know how to find the match for the output string that I need which will work for all of these strings? I am trying to code these in C#.
Thanks in advance for any help