; -Original Message-
> From: Bryan F. Hogan [mailto:[EMAIL PROTECTED]
> Sent: donderdag 10 juni 2004 19:00
> To: CF-Talk
> Subject: Re: Reliably stripping out only the email address?
>
> Hi Mike it works on all but the last index.
>
> Thanks for the script.
>
&
Bryan,
Take a look at this as an example. Its rough and ready but works in all your
test cases
ReFindNoCase("([^\x01-\x20\;\""\,])[EMAIL PROTECTED];\""\,]*(\.[a-zA-Z]{2,
})*", teststring, startpos, True)>
#st1.pos[1]#; length is #st1.len[1]#
#ReplaceList(Mid(testString,st1.pos[1],s
"the docs are quite extensive."
They are indeed!
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Hi Mike it works on all but the last index.
Thanks for the script.
Mike Townend wrote:
>
> function ExtractEmail(sString)
> {
> return trim(ReReplace(sString, ".*<([^>]*)>.*", "\1"));
> }
>
>
>
>
> #ExtractEmail(idxFoo)#
>
>
> works fine on all but the last entry, I havnt come acro
On Thursday 10 Jun 2004 15:54 pm, Bryan F. Hogan wrote:
> Pascal, this returns to me the first position that it finds the email
> address on. It does not strip out the email address from a string.
It will if you use a different RE function/argument in CF... the docs are
quite extensive.
--
Tom
Use REReplaceNoCase instead of REFindNoCase
> -Original Message-
> From: Bryan F. Hogan [mailto:[EMAIL PROTECTED]
> Sent: donderdag 10 juni 2004 16:54
> To: CF-Talk
> Subject: Re: Reliably stripping out only the email address?
>
> Pascal, this returns to me the f
function ExtractEmail(sString)
{
return trim(ReReplace(sString, ".*<([^>]*)>.*", "\1"));
}
#ExtractEmail(idxFoo)#
works fine on all but the last entry, I havnt come across any of ours
that had that format so havnt worried about it :)
HTH
Jedi
Bryan F. Hogan wrote:
> Thanks
>
> I
Pascal, this returns to me the first position that it finds the email
address on. It does not strip out the email address from a string. Of
course if I'm doing it correctly.
Pascal Peters wrote:
> [-_a-z0-9]+(\.[-_a-z0-9]+)[EMAIL PROTECTED](\.[-a-z0-9]+)*\.([a-z]{2,3}|aero|
> coop|info|museum|na
ryan F. Hogan [mailto:[EMAIL PROTECTED]
> Sent: woensdag 9 juni 2004 23:27
> To: CF-Talk
> Subject: Reliably stripping out only the email address?
>
> Does anyone have a Regex they can share that reliably strips
> out only the email address from the from address of a cfpop
Thanks
I think this only strips out a string between the lt and gt
Happen to have one that will work on these?
[EMAIL PROTECTED]
<[EMAIL PROTECTED]>
DisplayName <[EMAIL PROTECTED]>
"DisplayName" <[EMAIL PROTECTED]>
[EMAIL PROTECTED] (DisplayName)
Mike Townend wrote:
> Hi,
>
> We tend to use t
Hi,
We tend to use this...
//This function returns everything between a < and a >
function ExtractEmail(sString)
{
return trim(ReReplace(sString, ".*<([^>]*)>.*", "\1"));
}
and seems to be working OK
HTH
Jedi
Bryan F. Hogan wrote:
> Does anyone have a Regex they can share that reliably s
Does anyone have a Regex they can share that reliably strips out only
the email address from the from address of a cfpop download?
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
12 matches
Mail list logo