I need to fing all "table" tags on page with attribute border on the page using Regular Expressions on JavaScript.
How can I do it?
P.S. Please, don't propose me any JQuery (or similar) solutions.
Use this code
document.querySelectorAll("table[border]")
you can use regex object like this to match table which has border.
myTableElement.match(/<table.*?border.*?>.*?<\/table>/gi)
or like this
var x = new RegExp(/<table.*?border.*?>.*?<\/table>/gi)
myTableElement.match(x);
document.querySelectorAll. If this is a homework, stack overflow isn't the right place and whoever gave the homework should read about regexes and how they are not meant for parsing html.
.querySelector? You can use CSS selectors to match what you want, without regex.