Reply to Re: Best syntax for bold <li> "Headings"

Your name:

Reply:


Posted by freemont on 01/28/07 06:03

On Sun, 28 Jan 2007 00:19:36 -0500, Jonathan N. Little writ:

> freemont wrote:
>> On Sat, 27 Jan 2007 11:49:24 +0000, Toby Inkster writ:
>>
>>> s/^(.+)$/<li>\1<\/li>/g
>>
>> I don't understand the backslash-one in this. What does it do?
>
> Takes the "stuff" matching in the first part with the "()" and puts it
> in the second part at the "\1", but I think in Perl "$1" is preferred

Gotcha. Yes, $1 makes more sense to me. Thank you.

--
"Because all you of Earth are idiots!"
¯`·..·¯`·-> freemont© <-·¯`·..·¯

[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

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