Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 8th, 2004, 10:36 AM
Registered User
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help!! extracting information from an email

I'm from singapore , trying to do a project which involves sending a sms with information extract from emails, e.g phone number
Not sure how to do it , java or XML?
Can someone give me a hint

Old February 28th, 2005, 10:13 AM
Authorized User
Join Date: Feb 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Sandz

No idea dude,
But i think what you need is J2ME.
Try out sun pages,its freely downloadable

Old March 1st, 2005, 04:19 AM
Registered User
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jamestong

I think it's not important whether you will use java or c to do your project. It's a information extraction problem.

The first step will be tokenizing the source text, and what you need maybe JLex. If you don't like it, Java's String.matches() (maybe this name) can also do the job. XML you mentioned can store your patterns.

Step 2 will be anaylzing the token list(or you can say 'word list')you have got from the source text. Maybe you will need corpus and some patterns and they can also be stored in xml files.

Step 3 you need to extract the information you need (some merge work is needed) by some certain patterns. For example, [0-9]-[0-9] maybe a phone number. Again, you can store the patterns in an xml file.

if you only want to extract phone number, maybe you only need step 1.

Personal opinion.

Similar Threads
Thread Thread Starter Forum Replies Last Post
extracting attribute value hag XSLT 1 March 3rd, 2008 03:16 AM
string extracting fraijo SQL Server 2000 4 October 25th, 2006 09:53 PM
Extracting Text Jeff Mason BOOK: Beginning Regular Expressions 1 October 24th, 2006 06:38 AM
extracting atributes - how to do this? zoreli XML 6 August 12th, 2006 03:46 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.