Henry Grech-Cini schrieb:

I came accross this link

<a href="
http://www.alpha-geek.com/2003/12/31/do_not_do_not_parse_html_with_regexs.html
">
http://www.alpha-geek.com/2003/12/31/do_not_do_not_parse_html_with_regexs.html </a>

Do we all agree or should I keep trying?

Henry

hi henry,


this could be an interesting discussion. i think there can be a solution for every problem. it's only a question of the logic.

the main problem in this example are white spaces in every kind (space, tab, newline, carriage return, ...) and there are solutions in regex. a little example: '/( |\t|\n|\r)*/' checks optional white spaces
you can also give '\s*' a try (any whitespace char). maybe it also works with '\r\n'?


just some thoughts.

hth SVEN

ps: it surely is possible to ignore everything between '<script></script>', isn't it?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to