Answer the question
In order to leave comments, you need to log in
How to get multiline contents of RegExp?
There is a regular expression RegExp('(.*?)<' + '/tag>', 'gim').
Returns only if there is one line inside tag. If there is a carry at the beginning or at the end, then there is no match. Is it possible to apply the "m" flag to the search content?
Answer the question
In order to leave comments, you need to log in
should be something likeRegExp('<tag>(.+?)</tag>', 'gim')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question