Remove characters with regex in c#
- by Rise_against
Hello all,
I am not a regex specialist, so I need some help with this.
I have a text file, and I need to remove some trailing delimiters.
The text file looks like this:
MSH|^~\&|OAZIS||||20101029135359||ADT^A31|00000015|P|2.3.1||||||ASCII
EVN|A31|20101029135359^^^^||||19900101
So I think the best way is to do a Regex replace?
Can anyone help me with this regex?
I want to remove all ^ that come before a |
So test^A^^| has to become test^A|
Thanks