Find word with 2 different currly braces into html paragraph using php regex -


my question is. want solution ... below html para

<p>hello <b>{$customername}</b>,</p> <p>admin posted additional message on:</p> <p>kindly review , respond.</p> <p>sincerely,<br />\nsite adminstrator</p> <p>please click here more details <a href="{$link}">click here</a></p> <p>^ please click here set password {$restpasslink} ^</p> <p>^ please use forgot password link access ur account {$forgotpasslink}.^</p>  

now need sentence between [^] set dynamically. @ time 1 line should append para. if need {$forgotpasslink} line {$restpasslink} line should removed para. if need {$restpasslink} line {$forgotpasslink} line should removed para. set dynamically put both sentence between "^" special character.

i tried lots make possible. not getting exact solution. if can me how can this. possible regx (preg_replace) or other solution.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -