Marcus Boerger wrote:

I meant %s = [^\n]+?
Ah - I should have guessed that. Yes, it solves the problem, but then running make test gives an extra 7 failing tests - so I need to look at why they are failing and work out how to fix them.
and continuing our private discussion earlier we might want to either strip
of terminating \n prior to matching or adding \n to the expression, that'd
be:

%s = [^\n]+?\n?

However - do all OS reliably end a line with \n? (Linux is \n, Windows \r\n, 
Mac?). If the don't having a
platform-specific run-tests.php would be a fairly bad idea
For that reason I think it would be better to strip of the line ending prior
to do the matching.
Yes - I think so.

Zoe

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to