How to parse email and extract part that after @ sign?
J John W. Vinson Apr 10, 2010 #3 How to parse email and extract part that after @ sign? Click to expand... Mid(, InStr([email], "@") + 1) will work (the third argument to Mid is optional; if omitted it returns to the end of the string).
How to parse email and extract part that after @ sign? Click to expand... Mid(, InStr([email], "@") + 1) will work (the third argument to Mid is optional; if omitted it returns to the end of the string).
D Dirk Goldgar Apr 10, 2010 #4 GP George said: Right(,Len([Email])-InStr([email],"@")) That ought to do it.[/QUOTE] Or Mid([Email], Instr([Email], "@") + 1) Or Split([Email], "@")(1) Click to expand...
GP George said: Right(,Len([Email])-InStr([email],"@")) That ought to do it.[/QUOTE] Or Mid([Email], Instr([Email], "@") + 1) Or Split([Email], "@")(1) Click to expand...
D David W. Fenton Apr 11, 2010 #5 Split(, "@")(1)[/QUOTE] Split() works in code, but not in a query. Click to expand...
D Dirk Goldgar Apr 12, 2010 #6 David W. Fenton said: Split(, "@")(1)[/QUOTE] Split() works in code, but not in a query.[/QUOTE] True, though I don't believe the OP specified that the expression needed to work in a query. Click to expand... Click to expand...
David W. Fenton said: Split(, "@")(1)[/QUOTE] Split() works in code, but not in a query.[/QUOTE] True, though I don't believe the OP specified that the expression needed to work in a query. Click to expand... Click to expand...
D David W. Fenton Apr 12, 2010 #7 David W. Fenton said: Split(, "@")(1)[/QUOTE] Split() works in code, but not in a query.[/QUOTE] True, though I don't believe the OP specified that the expression needed to work in a query.[/QUOTE] No, but I think an answer to a question that's not specific needs to account for both possibilities. Click to expand... Click to expand... Click to expand...
David W. Fenton said: Split(, "@")(1)[/QUOTE] Split() works in code, but not in a query.[/QUOTE] True, though I don't believe the OP specified that the expression needed to work in a query.[/QUOTE] No, but I think an answer to a question that's not specific needs to account for both possibilities. Click to expand... Click to expand... Click to expand...
D Dirk Goldgar Apr 12, 2010 #8 David W. Fenton said: David W. Fenton said: Split(, "@")(1) Split() works in code, but not in a query.[/QUOTE] True, though I don't believe the OP specified that the expression needed to work in a query.[/QUOTE] No, but I think an answer to a question that's not specific needs to account for both possibilities.[/QUOTE] Quite right. My first post was just to show a couple of other ways to skin this cat (poor critter!), but it would have been better if I'd thought of the query issue. Click to expand... Click to expand... Click to expand...
David W. Fenton said: David W. Fenton said: Split(, "@")(1) Split() works in code, but not in a query.[/QUOTE] True, though I don't believe the OP specified that the expression needed to work in a query.[/QUOTE] No, but I think an answer to a question that's not specific needs to account for both possibilities.[/QUOTE] Quite right. My first post was just to show a couple of other ways to skin this cat (poor critter!), but it would have been better if I'd thought of the query issue. Click to expand... Click to expand... Click to expand...