Reply to Re: Gaps In Markup

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация