octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: behavior of regexp ( ) function


From: HALL, BENJAMIN PW
Subject: RE: behavior of regexp ( ) function
Date: Wed, 28 Jan 2009 15:25:20 -0500

 
|-----Original Message-----
|From: David Bateman [mailto:address@hidden 
|Sent: Wednesday, January 28, 2009 3:21 PM
|
| ** snip **
|
|I no longer have easy to matlab so can someone run the commands
|
|a = sprintf('20\t50\tcelcius\t80');
|b = sprintf('20\t50\t\t80');
|regexp(a, '[^\t]+', 'match')
|regexp(b, '[^\t]+', 'match')
|regexp(a, '[^\t]*', 'match')
|regexp(b, '[^\t]*', 'match')
|
|on matlab and send the results? Its not clear from your 
|message John if 
|the behavior described by Daniel is the right  one.
|
|Thanks
|D.
|


ans = 

    '20'    '50'    'celcius'    '80'


ans = 

    '20'    '50'    '80'


ans = 

    '20'    '50'    'celcius'    '80'


ans = 

    '20'    '50'    '80'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]