diff options
author | WWDillingham WesleyDillingham <wwdillingham@sugarlabs.org> | 2009-07-07 00:48:37 (GMT) |
---|---|---|
committer | WWDillingham WesleyDillingham <wwdillingham@sugarlabs.org> | 2009-07-07 00:48:37 (GMT) |
commit | 6007226e37b067be9bc0c672bede2f404c552db5 (patch) | |
tree | fd3211935930a5157b7e7899d60c04cb8bc2702f | |
parent | ef9251e44750e08bc3600815e427b140d3d139c2 (diff) |
Added Regular expression Key
//Addition = /\+/
//Subtraction = /[0-9]\-[0-9]/
//Division = /\//
//Multiplication= /\*/
-rw-r--r-- | order_of_operations_parser.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/order_of_operations_parser.php b/order_of_operations_parser.php index 1d5b320..f4525db 100644 --- a/order_of_operations_parser.php +++ b/order_of_operations_parser.php @@ -66,8 +66,13 @@ for (i=0;i<=$numRecords;i++) while ($tok !== false) { $equation = $tok[2]; - +/**********REGULAR EXPRESSION KEY*********/ +//Addition = /\+/ +//Subtraction = /[0-9]\-[0-9]/ +//Division = /\// +//Multiplication= /\*/ + // ` ********************************ADDITION************************* |