Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regular Expression To Select An Entire Line That Contains a HTML Class

I'm using TextMate to edit a project that I'm doing(HTML files) and I have some <div> tags assigned with the class=navigation property, but I need to change this <div>'s for a new design that I'm planning, but they are much(about 47 results if I search for class=navigation).

So I need a regular expression to match the entire line that this property is found, but which is it?

like image 652
Nathan Campos Avatar asked May 21 '11 21:05

Nathan Campos


1 Answers

I'm not a regex expert, but I would think that ^.*class=navigation.*$ would work.

like image 122
Chuck Avatar answered Oct 05 '22 11:10

Chuck