Javascript Regular Expression To Allow Negative Double Value? March 19, 2024 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 JugaLooping Using Position Absolute To Form 9 BoxesWhy Does Javascript Regexp Lack The "s" Flag?Javascript Regex That Requires One Uppercase Letter, One Lowercase Letter And One Number, And Allows Special^(-?)[0-9]+\.[0-9][0-9]$ Copy Share You may like these postsAngular2 Typescript - Print Pretty XmlAccessing Ejs Variable In Javascript LogicHow To Set Default Value To A String In Php If Another String Is Empty?Vue-cli Devserver Proxy Bypass Post a Comment for "Javascript Regular Expression To Allow Negative Double Value?"
Post a Comment for "Javascript Regular Expression To Allow Negative Double Value?"