On 2/27/2011 10:10 AM, Pete Hall wrote:
Isn't '|' a regex operator?
Have you tried escaping the |? ("\|")
Yeah, tried that. It throws an exception if I ignore the editor error:
Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\).
I see what the problem is ... you need to escape the escaping ... the regex you should use to split is "\\|".
Check out http://code.midrange.com/9a65cca921.html for an example of correctly splitting the string.
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.