[fpc-pascal] splitting string into array

Marc Santhoff M.Santhoff at t-online.de
Tue Jul 10 13:00:51 CEST 2007


Hi,

is there any function in the libraries of fpc for splitting a string
into an array naming the separator?

In awk for eample if you do this:

	split("ab-cd-ef", x, "-")
	print x[2]

it would split up the first string using "-" as separator and print

	cd

to the output. That's what I'm searching for.
In pascal. ;)

TIA,
Marc





More information about the fpc-pascal mailing list