![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm looking to parse an email. *Say I have an email like this: johnjo... (AT) gmail (DOT) abc.def.ghi.com I basically want johnjo... (AT) gmail (DOT) abc.def.ghi in one variable and the .com in the other. If the email is this: jjo... (AT) amail (DOT) co The same, I basically want jjo... (AT) amail (DOT) co in one variable and the .com in the other. I know I have to use SUBSTR & INSTR, but the problem is that I do not know how many periods may be in the email address..... Any takers for some help?? Thanks! John |
#3
| |||
| |||
|
|
Hi, I'm looking to parse an email. *Say I have an email like this: johnjo... (AT) gmail (DOT) abc.def.ghi.com I basically want johnjo... (AT) gmail (DOT) abc.def.ghi in one variable and the .com in the other. If the email is this: jjo... (AT) amail (DOT) co The same, I basically want jjo... (AT) amail (DOT) co in one variable and the .com in the other. I know I have to use SUBSTR & INSTR, but the problem is that I do not know how many periods may be in the email address..... Any takers for some help?? Thanks! John |
#4
| |||
| |||
|
|
Hi, I'm looking to parse an email. *Say I have an email like this: johnjo... (AT) gmail (DOT) abc.def.ghi.com I basically want johnjo... (AT) gmail (DOT) abc.def.ghi in one variable and the .com in the other. If the email is this: jjo... (AT) amail (DOT) co The same, I basically want jjo... (AT) amail (DOT) co in one variable and the .com in the other. I know I have to use SUBSTR & INSTR, but the problem is that I do not know how many periods may be in the email address..... Any takers for some help?? Thanks! John |
#5
| |||
| |||
|
|
Hi, I'm looking to parse an email. *Say I have an email like this: johnjo... (AT) gmail (DOT) abc.def.ghi.com I basically want johnjo... (AT) gmail (DOT) abc.def.ghi in one variable and the .com in the other. If the email is this: jjo... (AT) amail (DOT) co The same, I basically want jjo... (AT) amail (DOT) co in one variable and the .com in the other. I know I have to use SUBSTR & INSTR, but the problem is that I do not know how many periods may be in the email address..... Any takers for some help?? Thanks! John |
#6
| |||
| |||
|
|
On Jun 16, 9:48 am, Mtek <m... (AT) mtekusa (DOT) com> wrote: Hi, I'm looking to parse an email. Say I have an email like this: johnjo... (AT) gmail (DOT) abc.def.ghi.com I basically want johnjo... (AT) gmail (DOT) abc.def.ghi in one variable and the .com in the other. If the email is this: jjo... (AT) amail (DOT) co The same, I basically want jjo... (AT) amail (DOT) co in one variable and the .com in the other. I know I have to use SUBSTR & INSTR, but the problem is that I do not know how many periods may be in the email address..... Any takers for some help?? Thanks! John Can you not just check whatever is after the last period and decide then? There are only so many domains in the world. See the docs on instr about how to search backwards from the end of the string. But I must say, one of my domains ends with .to and does not have a .com, so I guess I'm thankful you can't spam me! :-) jg -- @home.com is bogus. Sorry, not drunk enough: http://www.signonsandiego.com/uniont...b14lerach.html |
#7
| |||
| |||
|
|
On Jun 16, 9:48 am, Mtek <m... (AT) mtekusa (DOT) com> wrote: Hi, I'm looking to parse an email. Say I have an email like this: johnjo... (AT) gmail (DOT) abc.def.ghi.com I basically want johnjo... (AT) gmail (DOT) abc.def.ghi in one variable and the .com in the other. If the email is this: jjo... (AT) amail (DOT) co The same, I basically want jjo... (AT) amail (DOT) co in one variable and the .com in the other. I know I have to use SUBSTR & INSTR, but the problem is that I do not know how many periods may be in the email address..... Any takers for some help?? Thanks! John Can you not just check whatever is after the last period and decide then? There are only so many domains in the world. See the docs on instr about how to search backwards from the end of the string. But I must say, one of my domains ends with .to and does not have a .com, so I guess I'm thankful you can't spam me! :-) jg -- @home.com is bogus. Sorry, not drunk enough: http://www.signonsandiego.com/uniont...b14lerach.html |
#8
| |||
| |||
|
|
On Jun 16, 9:48 am, Mtek <m... (AT) mtekusa (DOT) com> wrote: Hi, I'm looking to parse an email. Say I have an email like this: johnjo... (AT) gmail (DOT) abc.def.ghi.com I basically want johnjo... (AT) gmail (DOT) abc.def.ghi in one variable and the .com in the other. If the email is this: jjo... (AT) amail (DOT) co The same, I basically want jjo... (AT) amail (DOT) co in one variable and the .com in the other. I know I have to use SUBSTR & INSTR, but the problem is that I do not know how many periods may be in the email address..... Any takers for some help?? Thanks! John Can you not just check whatever is after the last period and decide then? There are only so many domains in the world. See the docs on instr about how to search backwards from the end of the string. But I must say, one of my domains ends with .to and does not have a .com, so I guess I'm thankful you can't spam me! :-) jg -- @home.com is bogus. Sorry, not drunk enough: http://www.signonsandiego.com/uniont...b14lerach.html |
#9
| |||
| |||
|
|
On Jun 16, 9:48 am, Mtek <m... (AT) mtekusa (DOT) com> wrote: Hi, I'm looking to parse an email. Say I have an email like this: johnjo... (AT) gmail (DOT) abc.def.ghi.com I basically want johnjo... (AT) gmail (DOT) abc.def.ghi in one variable and the .com in the other. If the email is this: jjo... (AT) amail (DOT) co The same, I basically want jjo... (AT) amail (DOT) co in one variable and the .com in the other. I know I have to use SUBSTR & INSTR, but the problem is that I do not know how many periods may be in the email address..... Any takers for some help?? Thanks! John Can you not just check whatever is after the last period and decide then? There are only so many domains in the world. See the docs on instr about how to search backwards from the end of the string. But I must say, one of my domains ends with .to and does not have a .com, so I guess I'm thankful you can't spam me! :-) jg -- @home.com is bogus. Sorry, not drunk enough: http://www.signonsandiego.com/uniont...b14lerach.html |
#10
| |||
| |||
|
|
Thanks a bunch. Was unaware that Oracle offered a reverse INSTR lookup..... |
![]() |
| Thread Tools | |
| Display Modes | |
| |