From: syam kumar medandrao on 10 Aug 2010 08:40 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 10 Aug 2010 08:53 "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 10 Aug 2010 09:11
"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 |