Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: simple regexp question
Date: Tue, 12 Aug 2008 16:13:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <g7scqd$lbp$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1218557581 21881 172.30.248.35 (12 Aug 2008 16:13:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 12 Aug 2008 16:13:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 939004
Xref: news.mathworks.com comp.soft-sys.matlab:485079



Hello,

I have a cell array of strings, each of which looks like :

'Lambda46' => '54.954684760469313', 

(including the quotes and comma) and I want to extract the
two numbers 46 and 54.954... and put them in vectors.
Normally I would do this by finding the locations of the
quotes and working from there, but I suspect there's a
better way using regular expressions and I figure it's about
time I started using them... is there a simple way to do this?