Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

regex for numbers + dot in javascript

// javascript regex for numbers and dot ex : 2.2
function validate(s) {
    var rgx = /^[0-9]*.?[0-9]*$/;
    return s.match(rgx);
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: remove css inline style javascript 
Javascript :: discord.js custom create channel 
Javascript :: jquery show flex 
Javascript :: add attribute selected jquery 
Javascript :: javascript get last day of month 
Javascript :: plusieurs style sur un element javascript 
Javascript :: chartjs start at 0 
Javascript :: get pods on specific node 
Javascript :: how to clean modal on js in event hide 
Javascript :: generate random boolean javascript 
Javascript :: mongo delete a key in matching documents 
Javascript :: blood group regex 
Javascript :: threejs cube mesh 
Javascript :: byte to gb javascript 
Javascript :: how to find next multiple of 5 in javascript 
Javascript :: how to open link in new tab in react js 
Javascript :: js id style backgroundColor change 
Javascript :: hidden jquery 
Javascript :: how to determin if element is in viewport with jquery 
Javascript :: send a message when a bot joins your server discord.js 
Javascript :: jquery if screen size 
Javascript :: replace string shopify 
Javascript :: add element to body javascript 
Javascript :: console.dir depth 
Javascript :: moment format 23 hour 
Javascript :: javascript get number from input 
Javascript :: window.open javascript auto close 
Javascript :: javascript enable a button once an input text filled 
Javascript :: how to iterate table rows in javascript 
Javascript :: jquerygrid disable sorting 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =