POE Paste with lovely alien head...

No paste!

from "renormalist" at 217.168.150.38
nested look-behind assertion

format options below
# I want to make sure it's just an unescaped bracket:
#
# i.e.       [
# i.e. not  \[
#
# and make sure that the backslash itself is not escaped itself, so
# this is a backslash an a bracket:
#
#          \\[
#
# Note, I have to write double \ in the grammar string itself, it's
# actually a single \.
#
grammar G {
 regex escaped   { <!after '\\'> '\\'  }
 regex unescaped { <!after <escaped> > }   # <-- nested look-behind assertion; legal?
 regex fopen     { <unescaped> '['     }
}





perl stuff: (might be helpful for others but not perfect)



Valid HTML 4.01!

Pastebot is powered by POE.