Using regex I need convert this string
url.
<a class="navPages" href="?mode=author&id=9&word=friend&fn=%d">%s</a>
To get a output format like this:
<a class="navPages" href="author/9/friend/page/%d>%s</a>
Or get result:
0:autor
1:9
2:friend
3:%d
How should I write the regexp?