Rosetta Code/Fix code tags: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (→{{header|Raku}}: perl6 -> raku) |
|||
Line 1,076: | Line 1,076: | ||
for txt in testtexts: |
for txt in testtexts: |
||
text2 = sub(r'<lang\s+([\w\d\s]+)>', r'<syntaxhighlight lang=\1>', txt) |
text2 = sub(r'<lang\s+\"?([\w\d\s]+)\"?\s?>', r'<syntaxhighlight lang=\1>', txt) |
||
text2 = sub(r'<lang\s*>', r'<syntaxhighlight lang=text>', text2) |
text2 = sub(r'<lang\s*>', r'<syntaxhighlight lang=text>', text2) |
||
text2 = sub(r'</lang\s*>', r'</syntaxhighlight>', text2) |
text2 = sub(r'</lang\s*>', r'</syntaxhighlight>', text2) |