Jump to content
php.lv forumi

Recommended Posts

Posted (edited)

sveiki!

censhos iebraukt tajos regexpos, ne iipashi sanaak.

lieta taada ka vajag izvaakt no stringa visus html tagus iznjemot <br>.

 

tiku tik taalu ka vinjsh izvaac visus tagus. bet kaa noraadiit lai vinjsh atstaaj <br>?

re = /<\s*([a-z]|p\w|\!)[^>]*>|<\s*\/\s*([a-z]|p\w)[^>]*>/gi;

 

jau ieprieksh paldies.

Edited by ebw
×
×
  • Create New...