Regular expression to select the entire string containing the HTML class

I use TextMate to edit the project I'm doing (HTML files), and I have <div> tags assigned using the class=navigation property, but I need to change this <div> for the new design that I plan, but they are many (about 47 results if I look for class=navigation ).

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

+6
source share
1 answer

I am not a regex expert, but I think ^.*class=navigation.*$ Will work.

+23
source

Source: https://habr.com/ru/post/888725/


All Articles