Thread perl6 Ersetze HTML Tags durch farbigen Text (2 answers)
Opened by Balduin at 2017-06-12 11:33

Gast Balduin
 2017-06-16 22:40
#186690 #186690
Mit etwas Hilfe von Stackoverflow bin ich selbst noch auf die richtige Lösung gekommen:

https://stackoverflow.com/questions/44589950/repla...

Code (perl): (dl )
$str.subst(/'<i>'(.*?)'</i>'/ , { colored( "$0" , 'blue') }, :global);

Last edited: 2017-06-17 09:06:55 +0200 (CEST)

View full thread perl6 Ersetze HTML Tags durch farbigen Text