counting blanks

Find, replace, find in files, replace in files, regular expressions

counting blanks

Postby dgeehot » Tue Aug 17, 2004 3:49 pm

I am looking for an easy way to look at a file in a particular postion and get of counts of how many blanks - Any thoughts or suggestions
User avatar
dgeehot
Newbie
 
Posts: 1
Joined: Mon Aug 16, 2004 11:00 pm

Re: counting blanks

Postby mrainey56 » Tue Aug 17, 2004 5:33 pm

The Word Count feature (Search Menu) shows the number of characters in a file both with and without spaces. Just calculate the difference.
User avatar
mrainey56
Master
Master
 
Posts: 212
Joined: Tue Jul 27, 2004 11:00 pm
Location: Spartanburg, South Carolina

Re: counting blanks

Postby Mofi » Wed Aug 18, 2004 1:44 am

If you only want the number of spaces and tabs excluding the CR LF, simply use Count All at the find dialog with the regular expression find string [ ^t].
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4058
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: counting blanks

Postby mrainey56 » Wed Aug 18, 2004 9:07 am

Good one! :D
User avatar
mrainey56
Master
Master
 
Posts: 212
Joined: Tue Jul 27, 2004 11:00 pm
Location: Spartanburg, South Carolina


Return to Find/Replace/Regular Expressions

cron