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? Quote Link to comment Share on other sites More sharing options...
effigy Posted September 5, 2007 Share Posted September 5, 2007 For something this simple, use explode. Quote Link to comment Share on other sites More sharing options...
riscphree Posted September 5, 2007 Author Share Posted September 5, 2007 Ah 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.