/A( [^Z]*)?Z/
It surprises me how many monks in this thread seem to think that expressing the "no Z between ..." condition with .*? is a good idea.
In reply to Re^3: This regexp made simpler
by moritz
in thread This regexp made simpler
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |