my fast solution is to replace '/' with '|' $data = preg_replace('#(<-[^<>]*)\/([^<>]*<\s*\/[^\/]+>)#uis',...
my fast solution is to replace '/' with '|' $data = preg_replace('#(.*<[^\/>]+>.*<-[^<>]*)\/([^<>]*<\s*\/[^\/]+>)#uis',...
Parsing fails with '<-' + '/' symbols combination in string
bad find() results because of '{'