in reply to Re^2: string manipulation with Regex
in thread string manipulation with Regex

Did you actually try my program with the sample inputs you mention above?

If so, you will have seen that the output is exactly as you expect! So what is still your problem?

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^4: string manipulation with Regex
by FluffyBunny (Acolyte) on Sep 02, 2010 at 15:19 UTC
    I just wanted to explain more clearly. The code itself is working. Thank you for your help =)