help with REGEX

this is an example of code:

<p>This is a test document</p>

<p>Link: This is a <a href="">link</a></p>

<p>Image: <img width=125 height=94 src="t2_files/image002.jpg"></p>

<p>Another Image below:</p>

<p> <img width=90 height=67 src="t2_files/image004.jpg"></p>

<p><b>BOLD TEST</b></p>

<p><b> </b></p>

<p><b><i>Italic and BOLD</i></b></p>

<p><b><i> </i></b></p>

<p><b><i><u>All 3 IT, BO, Underline</u></i></b></p>

what I am after is someone that can create a filter replace a section.

here's the area we're going to be working with for this project:


what I am after is someone familiar with regex to write a function for me that will do the following:

-replace the text from the right after the " to the / (t2_files/) with the prefix provided by an array. say for example the above in an array would be as follows: (%filename([url removed, login to view])%,%Prefix%)

so in the end that line above would appear as:

(the images folder is just an example this would come from a variable as well.

src="./images/%WHATEVER THE PREFIX ENDS UP BEING%image004.jpg"

that's it.

but needs to be done within the next couple hours.

in all honesty this should be a really simple and quick 10 rating if you are familiar with regex.

if you honestly think it would be really easy, and have server access, post a quick simple form allowing me to place an img tag in and see it produce the correct result.

text line for the image

text line for the prefix

text line for the imagedir (as this will be a variable as well)

this whole thing is a variable to begin with, and in the end should also be a variable.

Skills: PHP

See more: write what i say, regex is, regex in c, regex example, regex c, prefix function, and bo, regex &, php regex test, server help, Regex, php regex, img, google help, c++ regex, c regex, bold, regex tag, php text array, underline

About the Employer:
( 17 reviews ) Jasper, United States

Project ID: #212428

3 freelancers are bidding on average $30 for this job


Hello! Please check your PMB.

$30 USD in 0 days
(147 Reviews)

Hi! I'm good with regexp and ready to help you. pls write me.

$30 USD in 0 days
(9 Reviews)

Hi, I am ready for your work.

$30 USD in 0 days
(42 Reviews)