Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Regexp Challenge
Date: Wed, 20 Jan 2010 16:31:03 +0000 (UTC)
Organization: Battelle Energy Alliance (INL)
Lines: 13
Message-ID: <hj7b46$gi4$1@fred.mathworks.com>
References: <hj5e1c$7oj$1@fred.mathworks.com> <77d74c77-3913-4ad5-b40b-fc063a9aa07f@p8g2000yqb.googlegroups.com> <hj5rng$pk6$1@fred.mathworks.com> <hj6u7p$8cr$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1264005063 16964 172.30.248.35 (20 Jan 2010 16:31:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 20 Jan 2010 16:31:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 688530
Xref: news.mathworks.com comp.soft-sys.matlab:600278

"Jan Simon" <matlab.THIS_YEAR@nMINUSsimon.de> wrote in message <hj6u7p$8cr$1@fred.mathworks.com>...
> 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


Angry Armadillo?  Now that is funny!  I guess it is better than a drunken monkey ;-)