我有以下字符串,我需要将字符串拆分为列表
string s = "Welcome to the Center
Batch #1
English
Description about the course
Batch #2
Science
Description about the course
Batch #3
Social
Description about the course "
我想使用"Batch"
关键字拆分字符串,并且输出应如下所示。如何使用正则表达式进行拆分?
myList[0]="Batch #1
English
Description about the course"
myList[1]="Batch #2
Science
Description about the course"
myList[2]="Batch #3
Social
Description about the course"