What's the easiest way to do a "instring" type function with a regex. For example, how could I reject a whole string because of the presence of a single character such as ":" for example:
"this" - okay "there:is" - not okay because of ":"
More practically, how can I match the following string:
//foo/bar/baz[1]/ns:foo2/@attr/text()
For any node test on the xpath that doesn't include a namespace?
(/)?(/)([^:/]+)
Will match the node tests but includes the namespace prefix which makes it faulty.