Write a regular expression to validate phone number in XXX-XXX-XXXX format?
/^(?:\(\d{3}\)|\d{3}-)\d{3}-\d{4}$/
Also in JavaScript:
- hot loading react native shortcut key
- javascript get width of a div
- three js examples
- numbers counting up css
- how to add array data on state react
- ar.js getting started
- git empty commit
- afficher une variable dans la console javascript
- reactjs add border to the table row
- uncheck checkbox based on id js
- jspdf reduce size file
- document ready js
- how to store textbox data while typing for chrome extension
- add 10px to width js
- react Spread Attributes conditionally
- how to give a label padding through jquery
- javascript name capitalization
- javascript open url
- js vue array change position
- how to delete everything from a folder in js
- console.log('qqqqqqqqqqqqqqqqqqqq'); jslint error how to fix
- javascript get text from paragraph
- mongodb delete duplicate documents
- express and node