<p>Am 23.12.2016 12:54 schrieb "Graeme Geldenhuys" <<a href="mailto:mailinglists@geldenhuys.co.uk">mailinglists@geldenhuys.co.uk</a>>:<br>
><br>
> On 2016-12-23 08:14, Bo Berglund wrote:<br>
> > Is there a quick way to split a string of whitespace separated values<br>
> > into the separate members?<br>
><br>
><br>
> That problem is perfectly suited for regular expressions. And a rather<br>
> simple one at than. The FPC's FCL packages include a regex unit too<br>
> which should suite your needs.<br>
><br>
><br>
> <a href="http://www.regex101.com/">http://www.regex101.com/</a><br>
><br>
> <a href="http://www.regexplained.co.uk/">http://www.regexplained.co.uk/</a><br>
><br>
> <a href="http://regex.info/">http://regex.info/</a><br>
> Even the trial book (first chapter only) of "Mastering Regular<br>
> Expressions" is invaluable for users new to regex. And will<br>
> explain all you need to know to solve your problem.<br>
></p>
<p>Regular expressions usually have a higher overhead however (as you might have noticed, Bo timed his code later on).<br>
For example at work I changed a regular expression based parser for the lines of a log file to a simpler one and the speedup was noticeable (I don't have exact numbers anymore however).</p>
<p>Regards,<br>
Sven</p>