If that's really the case (and you are probably right) then maybe change the order: find the first and last occurrence of 'x', calculate where the middle one should be and look there?
However, the spec is a little woolly and the whole thing is still shouting "XY!" at me.
In reply to Re^3: Regular Expression: search two times for the same number of any signs
by hippo
in thread Regular Expression: search two times for the same number of any signs
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |