Hello
I want to find all Z symbols not preceded by X or standing in the beginning of line
i.e.
in sequence ZXZZY I want to receive indexes 0,3
in sequence YXZZ I want to receive 3
in sequence ZYXY I want to receive 0
in sequence YZXZ I want to receive 1
I wrote regexp
[^[^X]][Z]
that I thought ment
[[beginning of line] or[ NOT X] ]followed by [Z]
but it fails to find symbols that start in the beginning of line.
Please tell me were I'm wrong.
Regards,
V. S.