I’m trying out the pattern parser. One of the first things I’m trying is extracting data from a bit of XML, but there doesn’t seem to be a way to match a literal angle bracket. For example, some of my log lines have this in them:
<enteredCommand><cli>!exec: enable</cli></enteredCommand>
I need the !exec: enable
extracted. None of the usual methods of escaping the angle brackets worked. I tried backslashes, doubling up, etc. Switching to a regexp would be easy enough but the since pattern parser is billed as the fastest I thought that I’d give it a go.