preg_replace
http://us.php.net/preg_replace

On Wed, Dec 17, 2008 at 7:24 PM, Velda <[email protected]> wrote:
> D'oh!  Hate it when I accidentally hit send prematurely!  No spell check or
> anything... Retract, retract!
>
> Anyway, that's what my ugly data looks like.  I need to fix all of those
> instances so they look like regular xhtml image tags, and leave the rest of
> my data intact, and I'm not sure how to go about it.  But I'm guessing I
> first have to find each instance of <%, then explode that out into pieces
> with | as the delimiter.  And then echo back the right syntax, and somehow
> get it all back in. And I was initially going to just run this directly on a
> .sql file itself, but I'm supposing that's the dumb way to do it too.
>
> I am willing to experiment till the cows come home, but I'm not sure where
> to start.  Can anyone give me a pointer? (Like a url?)
>
> -Velda
>
>
>
>
> Velda wrote:
>>
>> I'm so incredibly out of my element on this.  I've got a database table
>> filled to the brim with data looking like this
>>
>> blah blah blah <%image(someimage.jpg|300|225|some image caption)%>  blah
>> blah blah
>>
>> blah blah blah <%image(someimage.jpg|300|225|some image caption)%>  blah
>> blah blah
>>
>>
>>
>
>
> _______________________________________________
>
> UPHPU mailing list
> [email protected]
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to