Delphi - How do I split a string into an array of strings based on a delimiter?
- by Ryan
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