Post Reply 
Proposal : List of regular expressions for numeric syntax on different HP calculators
06-07-2019, 06:26 PM
Post: #3
Proposal : List of regular expressions for numeric syntax on different HP calculators
(06-07-2019 05:25 PM)Jonathan Busby Wrote:  For the HP48 series, I think the regular expression is :

((([+-]?[0-9]+(\.)?[0-9]*)|([+-]?[0-9]*(\.)?[0-9]+))([eE](([+-]?[0-9]+(\.)?[0-9]*)|([+-]?[0-9]*(\.)?[0-9]+)))?)

I think the above might be incorrect because it allows a trailing decimal separator ( eg. 9.e9 ), but that can be fixed. Also, the decimal separator is just "." as including "," would be redundant for the purposes of explaining the regular expression.

Regards,

Jonathan

Aeternitas modo est. Longa non est, paene nil.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Proposal : List of regular expressions for numeric syntax on different HP calculators - Jonathan Busby - 06-07-2019 06:26 PM



User(s) browsing this thread: 1 Guest(s)