phpcode Posted August 10, 2007 Share Posted August 10, 2007 I'm trying to get the date until my account is invalid but all my code gets is the date, is there anything wrong with this code? ereg("Your Premium-Account is valid until ([a-zA-Z\_0-9\.,-]+)", $pagedata, $valid); The text I'm trying to get is "Your Premium-Account is valid until Wed, 31. Oct 2007." And all my code gets is "Wed," Can anyone see what I'm doing wrong? Quote Link to comment Share on other sites More sharing options...
effigy Posted August 10, 2007 Share Posted August 10, 2007 Your pattern doesn't include a space. Quote Link to comment Share on other sites More sharing options...
phpcode Posted August 10, 2007 Author Share Posted August 10, 2007 Thanks 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.