Mastodont Posted September 12, 2007 Share Posted September 12, 2007 How can I specify arbitrary order of two character groups? Suppose that I want capture some parts of hyperlink ("a" tag) and don't know the order of two specific attributes, title and class: <a href="..." class="..." title="..." ... >...</a> <a href="..." title="..." class="..." ... >...</a> The space between "class" and "title" could be filled with other attributes, but I don't care about them ... Is it possible with one regex? Thanks for advice. Quote Link to comment Share on other sites More sharing options...
effigy Posted September 12, 2007 Share Posted September 12, 2007 It's best to break apart the attributes separately. See this post. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.