Javascript Regular Expression To Allow Negative Double Value? January 28, 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 JugaHow Can I Match And Return Multiple Instances Of A String, Where Single Apostrophes Could Be Contained At Any Index?Regular Expression: Exclude Html Tags From "content"Jquery Function To To Format Number With Commas And Decimal^(-?)[0-9]+\.[0-9][0-9]$ Copy Share You may like these postsRemove Illegal Characters From A File Name But Leave SpacesJavascript - Regex To Remove Special Characters But Also Keep Greek CharactersCan A Regex Whitespace Character Cause An Injection?Making A Pipe With Regex On Angular2 Post a Comment for "Javascript Regular Expression To Allow Negative Double Value?"
Post a Comment for "Javascript Regular Expression To Allow Negative Double Value?"