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. Link to comment https://forums.phpfreaks.com/topic/69088-arbitrary-order/ 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. Link to comment https://forums.phpfreaks.com/topic/69088-arbitrary-order/#findComment-347305 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.