Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const input = "Company Name: Shire Homes, Inc. | First Name: Frodo
- | Last Name: Baggins |"
- const fout = input.match(/: (.*?) |/g)
- for (let i = 0; i < fout.length; i++) {
- console.log(fout[i].slice(2, -2))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement