Prev: PMSG
Next: PMSG
From: syam kumar medandrao on
hiii,,

Can u please explain how to use regexp to divide a text into words..i tried textscan also but that is alright, i wanted to know how efficiently this can work.

thanks,
From: us on
"syam kumar medandrao" <syam.moon19(a)gmail.com> wrote in message <i3rhbl$7ro$1(a)fred.mathworks.com>...
> hiii,,
>
> Can u please explain how to use regexp to divide a text into words..i tried textscan also but that is alright, i wanted to know how efficiently this can work.
>
> thanks,

well... come up with a good, small example in ML language...
then, peruse this great stuff, again...

doc regexp;

us
From: Wayne King on
"syam kumar medandrao" <syam.moon19(a)gmail.com> wrote in message <i3rhbl$7ro$1(a)fred.mathworks.com>...
> hiii,,
>
> Can u please explain how to use regexp to divide a text into words..i tried textscan also but that is alright, i wanted to know how efficiently this can work.
>
> thanks,

Hi Syam, How about:

str = 'how are you'
pat = '\s+';
wordz = regexp(str,pat,'split');
startindex = regexp(str,pat);


Wayne
 | 
Pages: 1
Prev: PMSG
Next: PMSG