|
Posted by Jonathan N. Little on 01/28/07 05:19
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
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|