Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tesst(input) {
- let result =[];
- let text = input.join(' ');
- let pattern = /(\d{1,2})-(\w{3})-(\d{4})/;
- let reggex = new RegExp(pattern, 'g');
- let match = reggex.exec(text);
- let textMatch = text.match(reggex);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement