commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ross McDonald" <ross.mcdon...@celebrus.com>
Subject [jxpath] sending regular expression as parameter in custom extension
Date Tue, 23 Apr 2013 15:49:16 GMT
Hi.

 

Is it possible to send regular expressions in custom extension function
calls with JXPath ?  Can anyone point to any examples ?

 

I am currently getting :

 

org.apache.commons.jxpath.JXPathInvalidSyntaxException: Invalid XPath:
'regex:apply(some/path, xxx, $2)'. Invalid symbol '\\' after:
'regex:apply(some/path, (.*'

 

where xxx is an arbitrary regular expression.

 

I am probably going about this completely wrong.

 

Thanks for your help.

 

Ross.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message