I want to match string between two string with Regex including newlines.
For example, I have the next string:
{count, plural,
one {apple}
other {apples}
}
I need to get string between plural,
and one
. It will be \n*space**space*
.
I tried this Regex:
/(?:plural,)(.*?)(?:one)/gs
It works, but not in JS. How to do that with JavaScript?