how to find date in a string js
var str = 'On the 03/09/2015 I am swiming in a pool, that was build on the 27-03-1994';
var res = str.match(/\d{2}([\/.-])\d{2}\1\d{4}/g);
document.getElementById('out').value = res;
Also in JavaScript:
- react native debug apk
- change version webpack-dev-middleware
- <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js'/>
- bootstrap validator password and confirm password
- sweetalert close on custom button click
- get value onChange from mat-select angular
- jquery remove multiple classes
- react hook usestate
- devexpress gridview add new row without datasource
- value from getelementbyid
- react routes
- javascript delete key from object
- js check if number has decimals
- vue moment js difference between dates in minutes
- jquery copier dans le presse papier
- how to check version of node js in cmd
- node.js mysql wildcard
- react Refused to execute inline script because it violates the following Content Security Policy directive
- change url without reloading
- value should be numeric in angular check
- class component react
- trigger window resize
- jquery nearest
- jquery if else on click