Quote:
Originally Posted by kovidgoyal
you want something like
Code:
//h:p[re.test(., '^Chapter.*', 'i')]
|
Well it doesn't work. I think above XPath expression is "find all <p>-tag text that matching the regular expression", but what I want is
- Find all text matching the regular expression
- Change the <p>-tag of the matching text to an <h>-tag