Posted by Blinky the Shark on 10/03/07 02:47
Beauregard T. Shagnasty wrote:
> Blinky the Shark wrote:
>
>> <counts string "span" on that index page with editor>
>>
>> I did a global substitution just to get a count, and got
>>
>> 1752 substitutions on 36 lines
>>
>> At two tags per span, that's 879 span elements. On some very long
>> lines. That's assuming they're all closed and therefore taking two
>> tags per element.
>
> That's more trouble than I took. <g> I look at the top group of
><span><span><span><span> ...
> and came up with the 250 there.
I figured that that page was a certifiable prize winner, or I wouldn't
have taken the time myself. :)
Anyway, it didn't take long to slap the source in to vim and enter
%s/span/wookie/g
:) And "wookie"? I figured if for any reason I wanted to
re-substutute, "wookie" wouldn't be a likely string to be in the
original source. :)
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project - http://improve-usenet.org
[Back to original message]
|