[UPHPU] Re: explode with more than one delimiter?
Velda
velda at novapages.com
Wed Dec 17 19:24:27 MST 2008
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
>
>
>
More information about the UPHPU
mailing list