BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-16-2009, 03:54 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2009
Model: 9000
PIN: N/A
Carrier: T-System
Posts: 23
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default emailvalidation

Please Login to Remove!

Hi

I want to validate an email address . How it is possible? pls help.
Its urgent


Thanks
Durg
Offline  
Old 10-16-2009, 07:05 AM   #2 (permalink)
New Member
 
Join Date: Oct 2009
Model: 8900
PIN: N/A
Carrier: Vodaphone
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

you could use a regx to validate the email, obviously this would only help to say that the address is formed correctly.

If you google it there are some out there I have used is

"^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$"

it works for me but as i said there are others available
Offline  
Old 10-16-2009, 08:16 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2009
Model: 9000
PIN: N/A
Carrier: T-System
Posts: 23
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by kharnmcd View Post
you could use a regx to validate the email, obviously this would only help to say that the address is formed correctly.

If you google it there are some out there I have used is

"^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$"

it works for me but as i said there are others available

Thanks kharnmcd

Blackberry (j2me) does not support the regular expression, I think so.
I have used pattern and matcher class .but these classes uses the java.util.regex, and blackberry does not support the regular expression.
pls give me the method which u used for blackberry

Again Thanks

Last edited by Durgm : 10-16-2009 at 08:18 AM.
Offline  
Old 10-16-2009, 09:08 AM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

Have a look at net.rim.device.api.ui.text.EmailAddressTextFilter
__________________
My other Blackberry is a PlayBook.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

5 PCS E28F320J3A-110 TSSOP E28F320J3A110 E28F320 3V Intel StrataFlash Memory
$24.49
5 PCS E28F320J3A-110 TSSOP E28F320J3A110 E28F320 3V Intel StrataFlash Memory picture10 PCS AT29C512-90JU PLCC AT29C512-90JC AT29C512 29C512 CMOS Flash Memory IC
$25.49
10 PCS AT29C512-90JU PLCC AT29C512-90JC AT29C512 29C512 CMOS Flash Memory IC pictureOMEGA 64KB Memory Card (Brand New)
$15.0
OMEGA 64KB Memory Card (Brand New) picture1PC NEW Siemens 4MB Memory Card 6ES7 954-8LC02-0AA0 6ES79548LC020AA0 #ZL02
$94.96
1PC NEW Siemens 4MB Memory Card 6ES7 954-8LC02-0AA0 6ES79548LC020AA0 #ZL02 pictureVWR TRACEABLE DATA LOG 50 MEMORY DIGITAL THERMOMETER -50 to 150 °C(1)
$43.0
VWR TRACEABLE DATA LOG 50 MEMORY DIGITAL THERMOMETER -50 to 150 °C(1) picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.