|
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© <-·¯`·..·¯
Navigation:
[Reply to this message]
|