string fuction

T

Tom B. Cruise

Given a field with string datatype. How can I write a fuction which will
take this field as input and output a string like following?

example 1,

[email protected] --> input


yahoo.com --> output


example 2,

[email protected] --> input


netvigator.com ---> output




P.S. I want to use this in a query. Thanks.
 
T

Tom B. Cruise

Cheryl,

But this function will take the specified position which is a
variable to my case.
 
Top