473,414 Members | 1,636 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Parsing an email address from a string? (A97)

MLH
I haven't run into this exact scenario before. I imagine
there's a simpler approach to extracting the email addr
than in other situations I've faced.

Consider a table of records consisting of a single text
field with stuff like this in it...

RawData
Julia Dancy jd****@dot.something.va.us
Eileen Dannacker Ei**************@Qmail.net
Joel Dascal Jo*********@denr.gov
Melinda Dascott Me*************@aol.com
tania dautlick ta************@whatever.org
Cliff Dautrich Cl************@aia.org

.... in general...
John K. Doe (manager) So*********************@this.that.com

Notice that the email address is the LAST thing in each record.
The name on the left, however, can be any number of space
separated strings and may include more than just the name
itself (titles, positions, etc). Am seeking to put everything to the
left of the email address in Field1 and the email addr in Field2.
Nov 13 '05 #1
2 1564
one way is to reverse the string, take everything from the left up to
the space and then reverse it again. So you're just using Mid and LEFT
and all those, but you're reversing the string first.

Nov 13 '05 #2
MLH
What a GREAT idea! Thx pietlinden, think I can handle that one.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 27 Oct 2005 13:54:35 -0700, pi********@hotmail.com wrote:
one way is to reverse the string, take everything from the left up to
the space and then reverse it again. So you're just using Mid and LEFT
and all those, but you're reversing the string first.


Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Naren | last post by:
I have an XML like the one below. I am using SAX parsing and I need to get the information between the tags of the Email element. First i try to access the content and print it out and it gives...
7
by: MLH | last post by:
I have a several hundred contact info entries in an MS Word document (name / addr / phone / email / website) - the usual sort of thing. I want to put the data into an A97 table. In my Word...
3
by: Aaron Walker | last post by:
At the beginning of my program, I open a config file and load the contents into a structure (please disregard the non-portable sockaddr_in struct as it is irrelevant to the problem): struct...
11
by: MLH | last post by:
Anyone ever experiement importing WAB data directly into A97? Would lke a chance to look at any work done in this arena.
1
by: yonido | last post by:
hello, my goal is to get patterns out of email files - say "message forwarding" patterns (message forwarded from: xx to: yy subject: zz) now lets say there are tons of these patterns (by gmail,...
15
by: VMI | last post by:
I'm parsing a comma-delimited record but I want it to do something if some of the string is between "". How can I do this? With the Excel import it does it correct. I'm using String.Split()....
3
by: ooba gooba | last post by:
Hi, I'm trying to track down why some recipients of our emails never receive them. These emails are sent from a PHP script which uses the 3rd party phpmailer class. The possible cause for the...
12
by: Klaus Alexander Seistrup | last post by:
Hi group, I am new to xgawk (and seemingly to xml also), and I've been struggling all afternoon to have xgawką parsing an XHTML file containing a hCard˛, without luck. I wonder if you guys...
3
by: aspineux | last post by:
My goal is to write a parser for these imaginary string from the SMTP protocol, regarding RFC 821 and 1869. I'm a little flexible with the BNF from these RFC :-) Any comment ? tests= def...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.