Post Reply 
Proposal : List of regular expressions for numeric syntax on different HP calculators
06-07-2019, 07:24 PM
Post: #5
Proposal : List of regular expressions for numeric syntax on different HP calculators
(06-07-2019 06:55 PM)Albert Chan Wrote:  
(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]+)))?)

Hi, Jonathan:

I only have a HP-12C, but I don't think decimal points allowed on the exponent field.

You are indeed correct! Big Grin The regular expression should then be :

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

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 07:24 PM



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