Remove attribute from a tag

    Date: 10/05/07 (PHP Community)    Keywords: no keywords

    I need to remove the text-indent attribute from a string.  The attribute may have different values, so I can't hardcode str_replace('blah','',$string);.   


    Examples:











    So I want to set something up that looks for a substring starting with text-indent and ending with the next ;, then deletes that substring. 

    I'm sure I want to use Regular Expressions, but I'm not sure what I need to use. 

    Suggestions are greatly appreciated.

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

« PHP source pretty printing || check boxes on form »


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