I am trying to extract an email address from the following string: "Joe Smith" <joesmith@website.ca>
I am trying to use the FIND function in coldfusion to find the first angle bracket. Here is my code:
Then I was going to use the MID function to extract the email address in between.
However, the FIND function cannot find the angle bracket.
Suggestions?
I am trying to use the FIND function in coldfusion to find the first angle bracket. Here is my code:
Code:
<cfset startpos = #find("<",fromemailstring)#>
<cfset endpos = #find(">",fromemailstring)#>
Then I was going to use the MID function to extract the email address in between.
However, the FIND function cannot find the angle bracket.
Suggestions?