Posted: Sun 18. Jul 2004, 14:00
Because it's not really a replacement tag I choosed to use ####xxx#### wich is also used by Oliver in more complex situations.
Reg-Ex is the short for regular-expression wich stands for patterned based searching, means not searching for a specific string (e.g: "phpwcms") but for a pattern (e.g: <[^>]*> wich finds HTML-Tags)
Because pagebreaks are defined by the text "####NEXTPAGE####" if have to search for (literally spoken): every text including pagebreaks and whitespace followed by "####NEXTPAGE####" followed by text including pagebreaks and whitespace. If I accidentially delete maybe one HTML-End-Tag too much I will screw up the code. Until know /(###NEXTPAGE###)(([\ \r\n]*)<\/[^>]*>)*/ does the job very well, so I will release this hack this evening
Reg-Ex is the short for regular-expression wich stands for patterned based searching, means not searching for a specific string (e.g: "phpwcms") but for a pattern (e.g: <[^>]*> wich finds HTML-Tags)
Because pagebreaks are defined by the text "####NEXTPAGE####" if have to search for (literally spoken): every text including pagebreaks and whitespace followed by "####NEXTPAGE####" followed by text including pagebreaks and whitespace. If I accidentially delete maybe one HTML-End-Tag too much I will screw up the code. Until know /(###NEXTPAGE###)(([\ \r\n]*)<\/[^>]*>)*/ does the job very well, so I will release this hack this evening