I am trying to get the index for the start of a tag and the end of another tag. However, when I use one regex it works absolutely fine but for two regex functions, it gives an error for the second one. Kindly help in explaining the reasonI am trying to get the index for the start of a