Thread Kurzes Ersetzungsscript, wer kann es ergänzen?
(9 answers)
Opened by Gast at 2008-04-22 17:16
Meinst Du so etwas:
Code (perl): (dl
)
1 2 3 4 my $string = "irgendein text http://test.example _wort_ noch was"; $string =~ s!(http://.*?)\s_(.*?)_!<a href="$1" class="link" target="_blank">$2</a>!g; print $string; Code: (dl
)
irgendein text <a href="http://test.example" class="link" target="_blank">wort</a> noch was OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/) -- Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html Perl-Entwicklung: http://perl-services.de/ |