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);. 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.
|