Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to grab all text before the @ symbol in email 1

Status
Not open for further replies.

fusionaire

Programmer
May 20, 2000
67
US
Does anyone know a way in CF to grab all the text before the @ sign in an email address?
Thanks in advance.
Fusionaire
 
search in the string functions, there must be one that returns the index of the "@" in your string, and one that truncates the 1st part of your string
i think i remember there are such functions in cf
if not, then you'll have to use javascript or some other langage ...
 
Try this:

<cfset name=SpanExcluding(email, &quot;@&quot;)>

IQ of 188, still the man :)


<webguru>iqof188</webguru>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top