mck*_*k89 0 html php regex php4
我试图在php中解析一串HTML标记属性.可能有3种情况:
attribute="value" //inside the quotes there can be everything also other escaped quotes
attribute //without the value
attribute=value //without quotes so there are only alphanumeric characters
Run Code Online (Sandbox Code Playgroud)
有人可以帮我找到一个正则表达式,可以在第一个匹配中获得属性名称,在第二个匹配属性值(如果它存在)?