jeudi 16 juillet 2020

XSD pattern for semicolon seperated list of double values

Is there a way to specify an XSD pattern for semicolon seperated double values?

<test>2.5;25.2e7;-0.5e8</test>

This is my approach:

 <xsd:pattern value="[-+]?[0-9][0-9]*.[0-9][0-9]*([eE][-+]?[0-9][0-9]*)?(;?[-+]?[0-9][0-9]*.[0-9][0-9]*)*"/>

but I still find many examples where it gives me validation errors. If found things like \d+, but it didn't help so far.

Thanks for your answers!

Aucun commentaire:

Enregistrer un commentaire