i want to replace all img src with data-src and this is my pattern :
(<img.*?)src
but this one is also matching data-src so when i use in on a loop it ouput something like that
<img data-data-data-data-data-data-data-data-data-data-data-data-data-data-src="..">
any help ?
/gflag, don't run the same pattern in a loop.