Advertisement
Guest User

Untitled

a guest
Oct 14th, 2016
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. function tesst(input) {
  2. let result =[];
  3. let text = input.join(' ');
  4. let pattern = /(\d{1,2})-(\w{3})-(\d{4})/;
  5. let reggex = new RegExp(pattern, 'g');
  6. let match = reggex.exec(text);
  7. let textMatch = text.match(reggex);
  8.  
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement