用于选择包含 HTML 类的整行的正则表达式
我正在使用 TextMate 编辑我正在做的项目(HTML 文件),并且我有一些使用 class=navigation
属性分配的
标签,但是我需要更改此
以实现我正在计划的新设计,但它们太多(如果我搜索 class=navigation
,大约有 47 个结果) )。所以我需要一个正则表达式来匹配找到此属性的整行,但它是哪个?
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?
我不是正则表达式专家,但我认为
^.*class=navigation.*$
会起作用。I'm not a regex expert, but I would think that
^.*class=navigation.*$
would work.