How do I match any character across multiple lines in a regular expression?
Try this: ((.|\n)*)<FooBar> It basically says “any character or a newline” repeated zero or more times.
Try this: ((.|\n)*)<FooBar> It basically says “any character or a newline” repeated zero or more times.
Creating multiline strings in JavaScript
Your for loop is using a value taken from your values array as the count limit, but you are indexing myArray. As you stated in your comment, you are going outside your array bounds. You should have: for (int t = 0; t < myArray.Length; t++)