samedi 18 avril 2015

regex to match only local css files

I need to select local stylesheets from an html string in javascript, how can I turn the following into a regex: (file.indexOf('<link rel="stylesheet"') === 0) && (file.indexOf('href="http') === -1) ?


Aucun commentaire:

Enregistrer un commentaire