我正在Lazarus中构建一个小应用程序,需要一个基于下划线的解析功能.例如:
array := Split(string, delimiter);
Run Code Online (Sandbox Code Playgroud)
因此string = "this_is_the_first_post",分隔符是下划线,导致数组返回为:
array[0] = this
array[1] = is
array[2] = the
array[3] = first
array[4] = post
Run Code Online (Sandbox Code Playgroud)
任何人都知道如何解决这个问题?我尝试了一些代码示例,它总是会抛出错误.
谢谢.
lazarus ×1