I would like to get the text between certain keywords [en] and [ja]
So for the following example:
[en]
Text
- Example
- Example
- Example
[ja]
Text
- 例
- 例
- 例
I need it to return only:
Text
- Example
- Example
- Example
I have tried using regex:
([en])(.|\n)+?([ja])
But it only grabs the first 2 characters of first line. What am I doing wrong here?
\[en]\n((?:.*\n)+?)\[ja]