Hi I'm trying to do some parsing of mail headers and since not all headers follow the pattern:
X-Header-A: A string X-Header-B: Another string that is longer X-Header-C: And this string is very very long compared But may very well look like this: X-Header-A: A string X-Header-B: Another string that is longer X-Header-C: And this string is very very long compared (Note that two of the header lines above wrap more than one line.) In order to read the headers into an array of header key/value fields i would like a reg exp to remove all new lines/line feeds before a line starting with one or more white spaces or tabs. I've tried myself but I'm just nog good with reg exps. Thanks in advance, Nicklas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php