www.webdeveloper.com
Results 1 to 15 of 20

Thread: Getting delimiter from a line

Threaded View

  1. #1
    Join Date
    Sep 2006
    Posts
    655

    Question Getting delimiter from a line

    Hi

    Can someone please tell me the best possible way to find the delimiter from a given line (not including the spaces)?

    For our convenience we can assume use the email address to split if necessary. So the very next char (except space) after the email can be our delimiter. But there may be cases where the email address is at last and no delimiter are there.


    Some examples are:

    Ex 1:
    Code:
    jon, doe, abc@gmail.com, 996655
    Ex 2:
    Code:
    abc@gmail.com; doe; ;996655
    Ex 3:
    Code:
    jon# doe# 996655# abc@gmail.com
    Ex 4:
    Code:
    jon doe 96655
    Ex 5:
    Code:
    jon doe 996655 abc@gmail.com
    Ex 6:
    Code:
    jon;doe;abc@gmail.com;996655;
    In ex 4 and 5 above, it should return as no delimiter found.

    Any help is appreciated.

    Thanks
    Last edited by phantom007; 06-20-2013 at 10:05 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles