Just use <cfset domain = ListLast(String,"@")>
since you don't know how many letters will be before the @.

Sincirely
Tom Espen Pedersen
developer @ www.pixelduck.com
[EMAIL PROTECTED]

----- Original Message -----
From: "Brian Thornton" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, March 23, 2001 8:36 AM
Subject: Need some parsing help


> Should I go through the route of len and right functions to accomplish the
following.
>
> I have a email adress. ([EMAIL PROTECTED])
> I want to parse just the domain and return juanvaldez.com
> THen insert it into a field.
>
> Should I Find the char of @ then get the len of the string (21)
> Then grab fron the @ (5) to 61 for the len og 16 then insert it? Any other
ideas?
>
> -brian
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to