[UPHPU] Re: explode with more than one delimiter?
Kirk Cerny
kirksemail at gmail.com
Wed Dec 17 20:32:06 MST 2008
preg_replace
http://us.php.net/preg_replace
On Wed, Dec 17, 2008 at 7:24 PM, Velda <velda at novapages.com> 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
> UPHPU at uphpu.org
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>
More information about the UPHPU
mailing list