Hello, I have been into php some time now and now my luck ran out and am force to ask for some help 😕 .
I am looking for a way to use the preg_replace to replace all tags that has the price is greater than (let's say greater than 5). Here is what i got so far:
[lock id="12" price="20"]hehehe[/lock]
[lock id="12" price="3"]hehehe[/lock]
$post = preg_replace("#\[lock id=([\"']|"|&\#039;|&\#39;)(\d+)([\"']|"|&\#039;|&\#39;) price=([\"']|"|&\#039;|&\#39;|)({1,9})([\"']|"|&\#039;|&\#39;)\](.+?)\[/lock\]#is", "AWW", $post);