var rgObject=eval("/p2>/ig"); var result=strText; result=result.replace(rgObject," whatever")
Receive the latest blog posts direct in your mailbox