4 lines
No EOL
162 B
JavaScript
4 lines
No EOL
162 B
JavaScript
let regex = /(<(?<tag>.*)>(?<content>.+?)<\/b>)/gm;
|
|
let text = "asdasdasdasdhasdkjahsdjk <b>asdjkasjkasldj</b> asjdalkjsd<b></b>";
|
|
|
|
console.log(regex.exec(text)); |