Regex favour

    Date: 04/13/07 (PHP Community)    Keywords: html

    Regex confuses me.

    I wanna use preg_replace to get rid of any "empty" HTML tags (ie.

    , but it could also be a div, header tag, etc.). So, it would need to be in the format of opening tag, then any amount of white space followed by the close tag, rendering it pointless (unless I'm forgetting any tags that should be empty and aren't self closing).

    So anyway, is any one talented and bored enough to right the regex for me? Cookies and love for any one that tries. Thanks!

    Source: http://community.livejournal.com/php/560553.html

« php help again || PHP IRC »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home