I suppose the idea was to remove the empty else clause together with the debugging prints... Anyhow, when doing so, i.e. with this test
if(/ (?(?=(.*o){1}) (?(?!(.*r){1}) (?=(.*w){2}) ) | (?=(.*w){2}) (?=(.*r){1}) ) ^..W$ /xi)
I can confirm that 5.8.8 and 5.10.0 are in fact producing different results: 5.8.8 gives YES/NO/NO/NO/YES/NO/NO/YES, while with 5.10.0 everything matches.
In reply to Re^2: Oddity with Conditional Regex
by almut
in thread Oddity with Conditional Regex
by Rabscuttle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |