+ Reply to Thread
Results 1 to 2 of 2

Thread: Extract names out among range of spaces in string using REGEX

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    35

    Extract names out among range of spaces in string using REGEX

    I have a string like :
    Code:
    [START]   Jack  John       Phil [END]
    So the amount of space between names can vary and unknown and i want to extract these names out of the string
    and i actually added the START and END to show you where are the spaces exactly.

  2. #2
    Junior Member
    Join Date
    Feb 2012
    Posts
    19
    You can just just split your string on whitespace :
    Code:
    [^\s]+

+ Reply to Thread

Bookmarks

Posting Permissions

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