Rick Root wrote:
> I've always found doing regular expressions find/replace in homesite to 
> be tedious to the point of it not working.
> 
> If I do an extended find in homesite 5.5+ with the following regular 
> expression, nothing comes up.
> 
> ^\s+$
> 
> that's a pretty simple "find all lines containing only whitespace" 
> expression, but it doesn't seem to work and I don't know why.

Hell, I figured it out.

Homesite isn't doing the regex line by line so doing ^\s+$ looks at the 
whole document.

I ended up using this in the extended replace dialog instead:

"
[[:space:]]+
"

(without the quotes but with the linefeeds)

Worked great, helped me take out all my empty lines.

Rick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235467
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to