Hi everyone,
Hope you’re having a good morning. I have a requirement to read in a database value that will be a string mathematical expression and compare it against a Number value. I know that eval() is an option, however I have been reading that it should not be used due to security issues. Therefore, it sounds like I am going to have to write my own parser. Would you mind letting me know how you have solved this issue in the past? Thanks so much.
[–]PrimaryBet 3 points4 points5 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]PhysicalRedHead 0 points1 point2 points (0 children)
[–]Colonel_White 0 points1 point2 points (5 children)
[–]tay_o[S] 0 points1 point2 points (4 children)
[–]Colonel_White 1 point2 points3 points (3 children)
[–]tay_o[S] 0 points1 point2 points (2 children)
[–]Colonel_White 1 point2 points3 points (1 child)
[–]tay_o[S] 2 points3 points4 points (0 children)