How do I use preg_replace to return part of a string?
I am trying to return mime types from an array. I have these strings in an array:

    application/pdf
    image/jpg
    image/jpeg

What I want to end up with is:

    pdf
    jpg
    jpeg
How do I use preg_replace to return part of a string?
===

I am trying to return mime types from an array. I have these strings in an array:

    application/pdf
    image/jpg
    image/jpeg

What I want to end up with is:

    pdf
    jpg
    jpeg