maybe you want [\\\&]{0,2}
Update Thinking about it... if you are trying to match \& only.. and not &\ \\ or && then you probably really want... (?:\\&)? which will match the string \& 0 or 1 times, and not capture it (?:)
- Ant
- Some of my
best work - (1 2 3)
In reply to Re: Regex confusion
by suaveant
in thread Regex confusion
by neilwatson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |