[linux] regexp v php

Matus fantomas Uhlar uhlar na fantomas.sk
Čtvrtek Leden 24 11:29:46 CET 2002


-> potrebujem, aby mi nasledovny regularny vyraz pokryl vsetok text za tagom
-> td, tzn. chcem odstranovat vsetky parametre tagu, aby zostal iba holy tag
-> <td>, ale nejako mi to nechce zozrat ...
-> 
-> (PHP)
-> 	$file_text = eregi_replace("\ [a-z]*=\"[a-zA-Z0-9\ %;\.-:#]*\"", "",
-> $file_text);

hmmm " [^>]*" by nestacilo? (moze byt v parametri tagu '>' ?(

-- 
 Matus "fantomas" Uhlar, uhlar na fantomas.sk ; http://www.fantomas.sk/
 Warning: I don't wish to receive spam to this address.
 Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu.
 "Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
 "So does syphillis. Good thing we have penicillin." - Matthew Alton




Další informace o konferenci linux