Thread Regex gesucht (6 answers)
Opened by kristian at 2016-03-01 09:09

kristian
 2016-03-01 16:00
#184025 #184025
User since
2005-04-14
684 Artikel
BenutzerIn
[Homepage] [default_avatar]
Meine Lösung:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
        $result =~ s#a\s+href="/
        (
            (?:
                (?!amp)
            .
            )*?
         )
         \.html"
         #a href="/amp/$1.html"#xmg;

Danke für die guten Tipps!

View full thread Regex gesucht