in reply to regex and string functions help needed.

That is because my code doesn't do what you want.

I stated the equation that my code calculates and you said that the calculation wasn't what you want. So it's not really a surprise that my code gives results that are different from what you want. Maybe you should restate what you want, and also what my code does, so somebody willing to hold your hand can then change my code for you to solve your homework.

  • Comment on Re: regex and string functions help needed.

Replies are listed 'Best First'.
Re^2: regex and string functions help needed.
by valavanp (Curate) on Oct 25, 2006 at 12:32 UTC
    Corion, i used your code because i couldn't understand the replies given my holli and swamy_rio. I am able to understand your code better than mine and others. That's why i posted that. Since you advised me not to use if else constructs in my code, i didn't use that. The only solution i got is from your reply. So please forgive me if anything wrong done to you. Thanks.