Right now I have a xpath search function that looks like this:
$paragraph = $xmldoc->xpath("//p[contains(., '$wordsearch')]");
I was wondering if it is possible to let $wordsearch
be a regular expression, so that my search looked something like this:
$paragraph = $xmldoc->xpath("//p[contains(., '$regularExpression')]");
Thanks for your help.