[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extracting a part of a string
From: |
zxcasdqwe |
Subject: |
Re: Extracting a part of a string |
Date: |
Mon, 25 Jun 2012 18:33:37 -0700 (PDT) |
Sorry, one more time:
subwrd = @(s,n) regexp(s, sprintf('(?:\\w+-){%d}(\\w+)',n-1), 'tokens',
'once'){1};
s = 'EAA-F54-20091023.bin';
subwrd(s,1)
subwrd(s,2)
subwrd(s,3)
--
View this message in context:
http://octave.1599824.n4.nabble.com/Extracting-a-part-of-a-string-tp4630941p4630944.html
Sent from the Octave - General mailing list archive at Nabble.com.