in reply to Re^5: substring selection from a string on certain qualifying conditions
in thread substring selection from a string on certain qualifying conditions

Sorry, but the OPs own code would remove all duplicates sequences found, regardless of where they were found.

No it doesn't. Output:

AXXA AXXAXXA
  • Comment on Re^6: substring selection from a string on certain qualifying conditions
  • Download Code

Replies are listed 'Best First'.
Re^7: substring selection from a string on certain qualifying conditions
by BrowserUk (Patriarch) on Dec 09, 2010 at 05:28 UTC

    Those are not duplicates; "would", not does!


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      duh. We're not talking about duplicates.

      So now you're saying the behaviour of the OP's code doesn't matter, yet your argument is that the OP's code is the spec (despite it being known not to work).

        Oh dear. Not again. What is it with you?

        1. I noted the lack of examples in my original post.
        2. I up-voted your post that raised your example.
        3. That example was not addressed in the OP! It was therefore "unstated".
        4. I posted another solution which addressed that new requirement.
        5. Did you just ignore the :) following the phrase "unstated rules"?

        Just because you couldn't come up with your own solution, do you really have to try and bolster your XP by conducting these pointless tirads?


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.