Javascript Regular Expression To Allow Negative Double Value? June 29, 2023 Post a Comment Hi I have e regular expression which helps me to validate user input. It only allows positive numbers with 2 decimal places, this is my regex: ^[0-9]+\.[0-9][0-9]$ I want this toSolution 1: It would be as follows:^(\-)?[0-9]+\.[0-9][0-9]$ CopySee working demo Solution 2: Think this will work:Baca JugaBootstrap : Uncaught Typeerror: $(...).datetimepicker Is Not A FunctionSite Behaves Differently When Developer Tools Are Open Ie11Express Ignoring Views Directory^(-?)[0-9]+\.[0-9][0-9]$ Copy Share You may like these postsHow Can I Retrieve Jsondata From Asp.net And Send It To Jquery? (implementing Fullcalendar)Jquery Javascript: Have A Filtering List(works), Need Help Keeping All Li's Visible When There's No MatchesConvert Human Readable Number Range To RegexWhat Is A Difference Between Array.prototype.foreach.call Vs Array.prototype.foreach Post a Comment for "Javascript Regular Expression To Allow Negative Double Value?"
Post a Comment for "Javascript Regular Expression To Allow Negative Double Value?"