|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] XQuery - RegEx Pattern Matcherderstubbi at gmx.de derstubbi at gmx.deFri Jun 19 11:33:23 PDT 2009
Hi, I am trying to use a RegEx within XQuery. In general that works fine. Now I have a more complex RegEx to work with CSV-files(these CSV have ";" as separator). I use can the following without problems in Java : Pattern Regex = Pattern.compile( "\\G(?:^|;)(?:\"((?:[^\"]|\"\")*)\"|([^\";]*))"); ... But in XQuery let $regularExpr :='\\G(?:^|;)(?:\"((?:[^\"]|\"\")*)\"|([^\";]*))' ... if (matches($row,$regularExpr) ) then ( ... just gives the error : Error at character 4 in regular expression "\\G(?:^|;)(?:\"((?:[^\"]|\"\")...": expected ()) I tried the optional flags (i, x, ...) but always with the same result... What is wrong with this RegEx ? P.S. :I run the XQuery from Java with Saxon. -- GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und Telefonanschluss für nur 17,95 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








