Hi
I am facing problem to use the PHP function preg_replace.
Actually, I have to replace :
<h1> to <h1><hr>\n
<h2> to <h2><hr>\n
<h3> to <h3><hr>\n
<h4> to <h4><hr>\n
<h5> to <h5><hr>\n
....Don't ask why :bleh:
I can do it using str_replace function 5 times.
But I think it can be done in a single preg_replace()
Pls help me :huh:
I am facing problem to use the PHP function preg_replace.
Actually, I have to replace :
<h1> to <h1><hr>\n
<h2> to <h2><hr>\n
<h3> to <h3><hr>\n
<h4> to <h4><hr>\n
<h5> to <h5><hr>\n
....Don't ask why :bleh:
I can do it using str_replace function 5 times.
But I think it can be done in a single preg_replace()
Pls help me :huh: