s{<code>(.+?)</ code>|\[(.+?)\]|(<!--.+?-->)} {defined $1 ? "$GREEN$1$RESET" : defined $2 ? "$RED$2$RESET" : defined $3 ? "$YELLOW$3$RESET" : warn "Broken with $+\n" }ge;
In reply to Re: Substitute for variable-length look-behind?
by Roy Johnson
in thread Substitute for variable-length look-behind?
by diotalevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |