Delphi - How do I split a string into an array of strings based on a delimiter?

Posted by Ryan on Stack Overflow See other posts from Stack Overflow or by Ryan
Published on 2010-04-12T21:49:38Z Indexed on 2010/04/12 21:52 UTC
Read the original article Hit count: 700

Filed under:
|
|
|

Hello all,

I'm trying to find a Delphi function that will split an input string into an array of strings based on a delimiter. I've found a lot on Google, but all seem to have their own issues and I haven't been able to get any of them to work.

I just need to split a string like: "word:doc,txt,docx" into an array based on ':'. The result would be ['word', 'doc,txt,docx'].

Does anyone have a function that they know works?

Thank you

© Stack Overflow or respective owner

Related posts about delphi

Related posts about delimiter