正则表达式 (Regex):如何查找多行 html 标记中缺少的属性

Regular Expression (Regex): How to find a attribute is missing in a multi line html tag

<g:select
                                    name="securityQuestionOne"
                                    id="systemSecurityQuestionOne"                                   
                                    optionKey="question"
                                    optionValue="question"
                                    value="${userPreference.securityQuestionOne}"/>

这里我想找出有多少 之类的标签

<g:select
                                    name="securityQuestionOne"
                                    id="systemSecurityQuestionOne"
                                    from="${securityQuestionList}" noSelection="['null':'-Select Question One-']"
                                    optionKey="question"
                                    optionValue="question"
                                    value="${userPreference.securityQuestionOne}"/>

这样我就可以在缺少的地方添加空的 from 标签,例如 from=""。

我找到了答案

(?s)<g:select((?!from).)*?/>