this is an example of code:
<p>This is a test document</p>
<p>Link: This is a <a href="http://www.google.com/">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><i>Italic and BOLD</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"
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.