PHP / Website Development -- 3

Job ID: 37402875

Budget: $8 – $15 USD

I am looking for a PHP developer with expertise in regular expressions to help me with my website development project.

TASK
================
1
Images are getting extracted from ===29===, ===30===, ===31=== but not the caption. Please update the code (or add new code if you need to) to find the "<figure...>" tag and extract the image and the internal
"<figcaption...>" to extract the caption and add them to the array (without affecting existing functionality)

2
On line 73: Add a REGEX in the preg_replace() function to find the entire "<figure...> </figure>" tag (and everything that is between the opening and closing tag and remove it) and remove it (replace it with
"")

===
I have a specific deadline for the project and would like it to be completed in the next few hours.
The files are attached.

Budgeted Time: 1 hour.
Related categories: PHP HTML Regular Expressions