From: "Jan Simon" <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Regexp Challenge
Date: Wed, 20 Jan 2010 12:51:05 +0000 (UTC)
Organization: Universit&#228;t Heidelberg
Lines: 9
Message-ID: <hj6u7p$8cr$>
References: <hj5e1c$7oj$> <> <hj5rng$pk6$>
Reply-To: "Jan Simon" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1263991865 8603 (20 Jan 2010 12:51:05 GMT)
NNTP-Posting-Date: Wed, 20 Jan 2010 12:51:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869888
Xref: comp.soft-sys.matlab:600172

Dear Matt!

> regexprep(A,'([^/]+/)(?!/)','${strrep($1,$1,'''')}')

Your REGEXPREP is fine and fast (I think - I do not dare to copy it).
But it is not nice Matlab poetry.
It looks like someone has rolled an angry armadillo over the keyboard.

Not your fault! Jan