title: preg_replace modify text and save to database
body: <p>Recently i <a href="https://stackoverflow.com/questions/18209205/preg-match-find-and-replace-a-string-pattern">posted a question</a>  which was used to replace iframes in database with shortcode. It did work for some contents but for some others it caused inconsistancy resulting a string like</p>
  
  <pre><code>[soundcloud url="http://api.soundcloud.com/tracks/106645167" frameborder="no" scrolling="no" width="100%" height="166"&gt;&lt;/iframe&gt;"]
  </code></pre>
  
  <p>This should be </p>
  
  <pre><code>[soundcloud url="http://api.soundcloud.com/tracks/106645167"]
  </code></pre>
  
  <p>I think this has been caused due to different iframes in database. I need to know that if there is any other way by which i can fix the issue on my database.</p>