Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 3
    strrpos, substr, str_replace, that's all. Commented Feb 20, 2012 at 22:37
  • Both works great, I will select answer in next 10 minutes. I noticed on my data, that I also have multi lines ie like this:My head is spinning with, pregreplace (Shoot I cant edit multi lines here... but basically need to make it single line as well with this same script.
    – Ossi
    Commented Feb 20, 2012 at 23:06