riscphree Posted September 5, 2007 Share Posted September 5, 2007 I'm having users register with their email address and I would like to be able to take the first part of the email and stick it in the users field. What would be regex to pull apart the email and get the first part before the @ into a variable? Link to comment https://forums.phpfreaks.com/topic/68113-pull-name-from-email/ Share on other sites More sharing options...
effigy Posted September 5, 2007 Share Posted September 5, 2007 For something this simple, use explode. Link to comment https://forums.phpfreaks.com/topic/68113-pull-name-from-email/#findComment-342382 Share on other sites More sharing options...
riscphree Posted September 5, 2007 Author Share Posted September 5, 2007 Ah thanks! Link to comment https://forums.phpfreaks.com/topic/68113-pull-name-from-email/#findComment-342385 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.