Maybe you should even consider something like \|([^|]*)\| to be sure you can't cross the boundary of the pipes (|).
In reply to Re: get some part of the string using regex
by Dog and Pony
in thread get some part of the string using regex
by gdnew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |