in reply to Re: What is the fastest way to extract data from a delimited string?
in thread What is the fastest way to extract data from a delimited string?

Your results seem convincing, yet everything I have heard about split is that it not the most efficient solution.

My instincts tell me that there is a regex which will outperform both split and the regex I have submitted for criticism.

Vannah, I'd like to buy a *REGEX* please...

Where do you want *them* to go today?
  • Comment on Re: Re: What is the fastest way to extract data from a delimited string?

Replies are listed 'Best First'.
Re: Re: Re: What is the fastest way to extract data from a delimited string?
by helgi (Hermit) on Jan 10, 2003 at 12:55 UTC
    You're out of luck then because split will *always* be much faster than any non-trivial regex. For large files, split is the only way to go. Your instincts are wrong, completely wrong.

    --
    Regards,
    Helgi Briem
    helgi AT decode DOT is