Jump to content
Server Maintenance This Week. ×

parsing text in a text field


This topic is 8065 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi, I'm hoping someone can give me a hand and show me how I can parse and email address into 2 fields. I need to get all the data before the "@" sign into the first field and everything after the "@" into the second. I can get this to work if it is a simple email address, but not if it is something like: name.lastname@ xyz.com or name_lastname @xyz.com or [email protected]. Any help is appreciated.

Link to comment
Share on other sites

Left(email, Position(email, "@", 1, 1) - 1)

Right(email, Length(email) - Position(email, "@", 1, 1))

Link to comment
Share on other sites

This topic is 8065 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.