Mental Posted August 25, 2009 Posted August 25, 2009 Hi, I have a field that imports from my email. It pulls in the email address and the name at the same time so it looks like this: John Smith I really need to trim this by either a calculation or a script that just goes through and processes the records so that it looks like: [email protected] I have to trim the name and also the < and > symbols. Any ideas? With great appreciation! Randy
comment Posted August 25, 2009 Posted August 25, 2009 See if this helps: http://fmforums.com/forum/showpost.php?post/289685/
David Jondreau Posted August 25, 2009 Posted August 25, 2009 (edited) How about: Let([ open = Position(field; "<";1;1); close = Position(field;">";1;1); start = open+1; end = close - open -1; address = Middle(field; start; end) ]; address ) PS Which upon further review of the thread is pretty much what comment referred to, though perhaps a little more explicit and "copy and pasteable". Edited August 25, 2009 by Guest
Recommended Posts
This topic is 5627 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 accountSign in
Already have an account? Sign in here.
Sign In Now