use Split function
temp and temp should be array of string
assign activity
temp =“This is PAGE 10 ON 996Best practices LIST with the following result”.split(“PAGE”).tostring
temp1 = temp(1).tostring.split(“LIST”).tostring
Output = temp1(0).tostring
Input= "This is PAGE 10 ON 996Best practices LIST with the following result"
Output= System.Text.RegularExpressions.Regex.Replace(Input, "[A-Z]+\s*\d+\s*[A-Z]+\s*[0-9A-Za-z]+\s*[a-z]+\s*[A-Z]+", "").Trim()