Results 1 to 7 of 7

Thread: Splitting a string that has no delimeter (or regex)

Threaded View

  1. #1

    Thread Starter
    Fanatic Member x-ice's Avatar
    Join Date
    Mar 2004
    Location
    UK
    Posts
    671

    Resolved Splitting a string that has no delimeter (or regex)

    If i have a string "football" or "racing". How can i split this string? The String.split() method needs a delimeter (or as the documentation calls it a 'regex'). Because there is no regex i cannot use this method. Are there any other ways?

    I want the new string to look like
    Code:
    f
    o
    o
    t
    b
    a
    l
    l
    Last edited by x-ice; Feb 25th, 2007 at 07:07 PM.

Posting Permissions

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



Click Here to Expand Forum to Full Width