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? Link to comment https://forums.phpfreaks.com/topic/64257-ereg-error/ Share on other sites More sharing options...
effigy Posted August 10, 2007 Share Posted August 10, 2007 Your pattern doesn't include a space. Link to comment https://forums.phpfreaks.com/topic/64257-ereg-error/#findComment-320400 Share on other sites More sharing options...
phpcode Posted August 10, 2007 Author Share Posted August 10, 2007 Thanks Link to comment https://forums.phpfreaks.com/topic/64257-ereg-error/#findComment-320446 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.