in reply to Regular Expresson How to Match

Although it isn't really what you are asking, have you considered using split instead of a regular expression? It looks to me as though you have a line with fields delimited by the pipe character ... often a good place to use split. You may still choose to apply a regular expression to a smaller part of the line, but you'll generally find less room for error when you have reached a more granular level.


No good deed goes unpunished. -- (attributed to) Oscar Wilde