Re: [cellml-discussion] Proposal: Standardised CellML real number format

2007-09-19 Thread Alan Garny
Therefore, I think that we need to restrict it down to something like (in regular expression syntax): (\-|)[0-9]+(\.[0-9]+|)(E(-|)[0-9]+|e(-|)[0-9]+|) In other words: An optional - , followed by 1 or more digits from 0 to 9, followed by an optional decimal point (not a comma

Re: [cellml-discussion] Proposal: Standardised CellML real number format

2007-09-19 Thread Andrew Miller
Alan Garny wrote: Therefore, I think that we need to restrict it down to something like (in regular expression syntax): (\-|)[0-9]+(\.[0-9]+|)(E(-|)[0-9]+|e(-|)[0-9]+|) In other words: An optional - , followed by 1 or more digits from 0 to 9, followed by an optional decimal point

[cellml-discussion] Proposal: Standardised CellML real number format

2007-09-18 Thread Andrew Miller
Hi all, The CellML Specification does not define the format in which real numbers will be represented at all (it just says, for initial_value: The value of the |initial_value| attribute may be a real number or a variable). The MathML specification defines A real number is presented in decimal

Re: [cellml-discussion] Proposal: Standardised CellML real number format

2007-09-18 Thread David Nickerson
Therefore, I think that we need to restrict it down to something like (in regular expression syntax): (\-|)[0-9]+(\.[0-9]+|)(E(-|)[0-9]+|e(-|)[0-9]+|) In other words: An optional - , followed by 1 or more digits from 0 to 9, followed by an optional decimal point (not a comma or

Re: [cellml-discussion] Proposal: Standardised CellML real number format

2007-09-18 Thread Andrew Miller
David Nickerson wrote: Therefore, I think that we need to restrict it down to something like (in regular expression syntax): (\-|)[0-9]+(\.[0-9]+|)(E(-|)[0-9]+|e(-|)[0-9]+|) In other words: An optional - , followed by 1 or more digits from 0 to 9, followed by an optional decimal