I currently have this: tr/[.]+(?=<)//d
which should remove all characters (represented by [.]+
) up to the first "<"
, because I'm using a positive lookahead. But for some reason, it's removing all "."
and "<"
from the string.
For the record, I am not processing HTML or XML with regular expressions.