2xlp has asked for the wisdom of the Perl Monks concerning the following question:
i know how to pull the text via a regex easily<img id="image-1" src="http://site.com/a.gif" />
however now i need to replace the node's contents with the output of a function ( which is based on the matches generated ).my $regex= qr|<img id="image-(\d*) src="http://site.com/(\w*)" />
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: replace text with function ?
by Fletch (Bishop) on Jan 12, 2009 at 03:26 UTC | |
by ikegami (Patriarch) on Jan 12, 2009 at 03:51 UTC | |
by 2xlp (Sexton) on Jan 12, 2009 at 03:51 UTC | |
Re: replace text with function ?
by ww (Archbishop) on Jan 12, 2009 at 13:18 UTC | |
by 2xlp (Sexton) on Jan 15, 2009 at 20:16 UTC |