in reply to changing existing text to a link
For each pair of capturing parentheses (up to nine total), the text they capture is put into $1 through $9. Read perldoc perlre for more information about this and other regex stuff.$_ = 'some text http://moo.com fish'; /(http:\/\/)/ $href = $1;
Of course, I'd recommend using some of the excellant solutions in this thread, but this is up to you.
|
|---|