I tried to remove the text after the @ (also the @ character should be removed)
example:
soemthing@googlesomehing.com
textsomthing@googlesomehing.com
Goal:
soemthing
textsomthing
The solution below is not optimal. As i don’t know how many character the e-mail address will have… anyone now a better solution ?
<cfset tx = "somthing@googlesomething.com" />
<cfoutput>#REReplace(tx, "text(.*)", "text")#</cfoutput>
<cfset newtx = "#REReplace(tx, "text(.*)", "text")#">
<cfset textoutput = left(newtx, len(newtx) -1)>
</br>
<cfoutput>#textoutput#</cfoutput>