Treehouse: Grow your CSS skills. Land your dream job.

regular expression

  • # September 16, 2012 at 6:06 am


    I got to work with a mess code.
    Want to validate it and look more consistent.

    How to search for images that do not have ending /


    And no, I cannot search by


    <img src="" width="" height="" alt="">

    <img src="" width="" height="" alt="" />

    # September 16, 2012 at 8:10 am

    Yup, I have accumulated quite a few handy regex’s and that is one of them: ]+)(s*[^/])>

    That can obviously be adjusted to suit any self-closing tag…

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.