Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

How can i extract from a text file only group of letter which have white space before or after ?

$
0
0

This is an example of part of the text file content:

CNN.com International - Breaking, World, Business, Sports, Entertainment and Video News
var cnnIsHomePage=true,
cnnCVPAdSection='edition.cnn.com_main_homepage',
cnnIsSectionPage=true,
cnnPageName="CNN International Home Page",
cnnSectionName="CNN International Home Page",
sectionName="homepage",
cnn_edtnswtchver="edition",
cnnCurrTime=new Date(1372030807000),
cnnCurrHour=19,
cnnCurrMin=40,
cnnCurrDay='Sun';




if(html5Check){
Event.observe(window,'load',function(){
$('cnn_ipadappbanner').update('');
});
}
UAstring=navigator.userAgent;
function cnnMakeHP(){
if(UAstring.indexOf('MSIE')>-1){}else{CNN_handleOverlay('homepage_set_overlay');}
}
function linkTrackCall(l){
var s=s_gi(s_account);
s.linkTrackVars='none';
s.linkTrackEvents='none';
s.tl(this,'o',l);
}
if ($('cnn_GallerySliderContainer'))

There are many words here but i want to extract to put in a List<string> only the words that have white space before or after.

For example the word Breaking or World or International they have white space before or after so this mean a word i need.

All the other i dont need.

How can i extract/parse this words ?


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>