Hello all,
Having a problem converting quite a lot of Wordpress post data into a custom built system.
I need to break up the data and clean it, before putting it back to the DB.
This is what the Wordpress content looks like:
[lang_en]This is some text, which can actually contain line breaks and all.
[flashvideo filename=“http://” captions=“” usecaptions=“true” usekeys=“true” /][/lang_en]
[lang_nl]This part contains Dutch text.
[flashvideo filename=“http://” captions=“” usecaptions=“true” usekeys=“true” /][/lang_nl]
Note that the different parts are not necessarily on predictable new lines, as they were manual input.
So, first off, I’d need to recognize the ‘lang’ tags and put what’s between those tags in a dutch string and an english one.
Secondly, the entire part which starts and ends with the flashvideo tags should go, leaving just the regular English or Dutch text.
This seems like a RegEx piece of work, which I really don’t understand…
It doesn’t seem hard, but I don’t know where to start.
Could someone get me going?
Thanks!