I've just updated the minimal PCRE2 source code demo in post #162 with a new RegexSplit function. I've had to modify the Match UDT to include MatchStart and MatchLen parameters to accommodate this new feature.

NOTE: This is all very lightly tested, so there may be bugs. Please report any issues and I will take a look as soon as I can.

Example:

Code:
Debug.Print UBound(RegexSplit("abc123def345ghi", "[0-9]+")) ' Should print 2 for string array with elements "abc", "def", and "ghi"
REMINDER PS: This is getting off-topic for the thread since RC5 is not required/used by the minimal PCRE2 implementation, so maybe the benchmarking stuff should be moved to a new thread and the conversation can be continued there.