in reply to Re^3: Help with regex, how to get the largest integer in a string?
in thread Help with regex, how to get the largest integer in a string?

Are you aware that the first parameter to split is a regex? With everything, good and bad, that implies.


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.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^4: Help with regex, how to get the largest integer in a string?

Replies are listed 'Best First'.
Re^5: Help with regex, how to get the largest integer in a string?
by naikonta (Curate) on Apr 19, 2007 at 15:52 UTC
    My understanding of split is for the whole thing about it, including of course that pattern being the first argument. Likewise, my statement referred to the comparison between regex- and split-based solution despite that a pattern being used in split.

    Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!