The question is:
as from this line: <a title="2" href="link" class="pagenav"></a> get this: <a title="2" href="link" class="pagenav MYCLASS"></a>
In other words, how to add a class to a tag using a regular expression in preg_replace?
PS: if there are other options how to do this, except for preg_replace, I will be very grateful.