Proposal : List of regular expressions for numeric syntax on different HP calculators

06072019, 05:25 PM
Post: #1




Proposal : List of regular expressions for numeric syntax on different HP calculators
I'm interested in the syntax of what the user can enter as a number in various HP calculators. For the HP48 series, I think the regular expression is :
((([+]?[09]+(\.)?[09]*)([+]?[09]*(\.)?[09]+))([eE](([+]?[09]+(\.)?[09]*)([+]?[09]*(\.)?[09]+)))?) which is quite convoluted. Here's a short Perl script that presents it in a more understandable way : Code: #!/usr/bin/perl I'm interested in how the regular expressions used to match the user entered number formats differ in different HP Calculators. Perhaps we could compile a list of the different regular expressions Regards, Jonathan 

« Next Oldest  Next Newest »

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