Discussions

XML & Web services: Valid regular expression...

  1. Valid regular expression... (1 messages)

    Is this regular expression valid as a pattern for an XML Schema?

    "([a-zA-Z0-9\-]+\.)+"

    I want it to validate a string in the form abc.1as.xc2.sa3

    Is it valid to "nest" patterns in the regular expression? XMLSpy will let me do it, but Oracle XML parser will raise an exception argumenting an invalid facet pattern.

    Is this a problem with oracle parser implementation or is it me pushing the pattern syntax way beyond the spec?

    Thanks
    Fedro
  2. Valid regular expression...[ Go to top ]

    I think there are problems with the Oracle parser.

    This (the pattern validation) is one of the problems we are having (see my message a couple of days ago in this forum). The message will parse successfully with Xerces/XMLSpy, but is thrown out by Oracle.

    We've had to give up using Oracle for the time being. The documentation is poor, and problems such as yours seem to ruin the product.

    Cheers,
    Rick