Results 1 to 5 of 5

Thread: Removing first occurrence of string within a string?

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2012
    Posts
    6

    Question Removing first occurrence of string within a string?

    Hi everyone

    I'm wondering how i could remove the first occurrence of a set of characters from a string, and then looping until there are no characters left in the string.

    For example:
    I want to remove the first "wer" from "qwertyqwertyqwerty", so that the string then reads "qtyqwertyqwerty".

    Any ideas on how to do that?

    EDIT: Clarified example.
    Last edited by h33t; Oct 23rd, 2012 at 03:35 PM.

Tags for this Thread

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