Try this:
((.|\n)*)<FooBar>
It basically says “any character or a newline” repeated zero or more times.
More Related Contents:
- How do I search and replace across multiple lines with Perl?
- Reference – Password Validation
- Regular Expressions: Is there an AND operator?
- Difference between \b and \B in regex
- How can I write a regex which matches non greedy? [duplicate]
- How to negate the whole regex?
- How to validate phone numbers using regex
- Regular Expressions and negating a whole character group [duplicate]
- Decimal number regular expression, where digit after decimal is optional
- Regex for string not ending with given suffix
- How can I output only captured groups with sed?
- Using the star sign in grep
- Regex group capture in R with multiple capture-groups
- Regex for route matching in Express
- AWK: Access captured group from line pattern
- Regular expression – starting and ending with a character string
- To use or not to use regular expressions?
- Multiple regex matches in Google Sheets formula
- Regex: How to match a string that is not only numbers
- Regular expression for parsing name value pairs
- Need a regular expression – disallow all zeros
- How to match a line not containing a word [duplicate]
- How do I get regex support in Excel via a function, or custom function?
- Regular expression to extract whole sentences with matching word
- Combining $regex and $or operators in Mongo
- Case insensitive search in Mongo
- Find all string matches with Regex golang
- Replace with whole match value using Notepad++ regex search and replace
- Match parenthesised block using regular expressions in vim
- RegEx for allowing alphanumeric at the starting and hyphen thereafter