Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve(arr){
- let final = [];
- for (let string of arr) {
- if (string.match(/^([<])([\w]+[>])+(.+)(\1[/]\2)$/g)){
- final.push(string.replace(/(<([^>]+)>)/ig, ""))
- }
- }
- console.log(final.join(' '));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement