yanjchan Posted June 19, 2009 Share Posted June 19, 2009 This is less of a IMAP question (I've got that up and running) and more of a question on how to parse such messages. I suck at creating scripts to parse texts, and I have no idea on how to do this. The output is sort of like this: 1) A [date] [title] Or at least thats how I remember it... And its all in plain text. Can someone concoct something to seperate them from each other? Thanks! Quote Link to comment Share on other sites More sharing options...
RussellReal Posted June 19, 2009 Share Posted June 19, 2009 preg_match_all("/\) ([^ ]+) ([^ ]+) ([^ ]+) ([^ ]+)/",$data,$matches); Quote Link to comment Share on other sites More sharing options...
yanjchan Posted June 19, 2009 Author Share Posted June 19, 2009 Thanks for your succinct solution. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.