http://www.perlmonks.org?node_id=845453


in reply to Re^2: Searching for a specific pattern.
in thread Searching for a specific pattern.

I don't see the relation between XPaths and regular expressions, but /^LX\z/ checks for exactly "LX".

( An XPath that checks the value of an attribute would look like /foo/bar[@type="LX"] )