Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Mathematics
General TopicsResearchOperations ResearchStatisticsMathematical LogicNumerical AnalysisUndergraduate MathAlgebra HelpRecreational Math
Math Software
MapleMathematicaMATLABScilabSASSPSS

Re: split text string



Tip: Looking for answers? Try searching our database.



You are accessing this site in a read-only mode. For full access to all member benefits, including message posting, please login or register. Registration is completely free, simple, and takes only a few seconds.

Login | Free MathKB.com registration | Whole discussion thread

The message you are replying to and its parents are listed in the reverse order with the most recent posts first. This might not be the whole discussion thread. To read all the messages in this thread please click here.

Re: split text string

us11 Jul 2008 06:41
"Bamba Bolo":
<SNIP a matter of english...

> two words separated with a "tab" looking something like
below:
> one    two
> now how do you do to split this string to two separate
> strings...

one of the many solutions

    s=sprintf('one\ttwo three\tfour');
    r=regexp(s,'\t','split')
% r = 'one' 'two three' 'four'

us

Bamba Bolo10 Jul 2008 20:26
Hi, I have multiple text strings consisting of two words
separated with a "tab" looking something like below:

one    two

now how do you do to split this string to two separate
strings, in this case it would be split to the strings 'one'
and 'two'.

Thanks

Quick links:

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage




©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.