regex, "NoResize" olmadan img alıyorum

0 Cevap php

I plan to work on each img of an html file. Those images must not contain the word "noresize". I built the regex to get img :

#<img(\s[^>]*)>#ie

Bu oldukça iyi çalışıyor ama ben "NoResize olmadan" belirtmek için nasıl bulamıyor.

Ben böyle bir şey denedim:

#<img(\s[^>]*)((?!noresize).)>#ie

Ama belli ki, ben ne gerek değil ...

Any Idea ? Julien

0 Cevap