Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe05.iad.POSTED!7564ea0f!not-for-mail
From: Walter Roberson <roberson@hushmail.com>
Organization: Canada Eat The Cookie Foundation
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
Newsgroups: comp.soft-sys.matlab
Subject: Re: read multi-line data with multiple delimiters
References: <70d4e42d-48e0-4f97-a9d2-83aa4eeed8c2@l76g2000hse.googlegroups.com> 	<f1e9e1ed-edaf-48ae-a90f-7112075ab1b6@64g2000hsu.googlegroups.com> <477251cf-9768-492a-859c-4d1c3f1193f3@i76g2000hsf.googlegroups.com>
In-Reply-To: <477251cf-9768-492a-859c-4d1c3f1193f3@i76g2000hsf.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 7
Message-ID: <tbqMk.10755$xs1.5261@newsfe05.iad>
NNTP-Posting-Host: 24.79.146.116
X-Complaints-To: internet.abuse@sjrb.ca
X-Trace: newsfe05.iad 1224879961 24.79.146.116 (Fri, 24 Oct 2008 20:26:01 UTC)
NNTP-Posting-Date: Fri, 24 Oct 2008 20:26:01 UTC
Date: Fri, 24 Oct 2008 15:26:14 -0500
Xref: news.mathworks.com comp.soft-sys.matlab:497168


boivie@gmail.com wrote:
> while (~regexpmatch('Tie'|'Line')).

isempty(regexp(s, '^Tie|^Line', 'once'))

and you will have to adjust Rune's pseudo-code to read a line
into s at the beginning.