My regular expression should take [id=###]blahblah[/id] and replace it with <a href="/cgi-bin/coolcode.pl?id=###">blahblah</a>.The following should work:
my $text = "[id=###]blahblah[/id]; my $targetURL = "/cgi-bin/coolcode.pl?"; $text =~ s/.*[(id=.*)](.*)[\/id]/<a href=\"$targetURL\1\">\2<\/a>/gs;
In reply to Re: Monks' Expression
by sierrathedog04
in thread Monks' Expression
by sinan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |