locked
string manipulation question RRS feed

  • Question

  • HI - 

    I have a situation where I receives an emailaddresse like 'abc@gmail.com;cbd@gmail.com' or 'abc@gmail.com,cbd@gmail.com'

    I want to fetch only first email address (the one before ; or ,) like abc@gmail.com only.

    I want to check first the string to see if there is any ; or , in the string and if it is then fetch the first email address only

    how can i do that in vbscript ? any help would be appreciated? 

    • Moved by Carl Cai Friday, December 12, 2014 3:27 AM more related to suggested forum
    Thursday, December 11, 2014 3:32 PM

Answers

  • Hello,

    This forum is for VB.NET in which case String.Split would be used. I suggest using the following forum.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

    • Proposed as answer by Carl Cai Friday, December 12, 2014 3:27 AM
    • Marked as answer by Just Karl Friday, February 20, 2015 9:02 PM
    Thursday, December 11, 2014 3:52 PM