At the start, use a dotall modifier (?s)
to make dot to match also newline characters.
(?s)\[sometag\](.*?)\[\/sometag\]
DEMO
At the start, use a dotall modifier (?s)
to make dot to match also newline characters.
(?s)\[sometag\](.*?)\[\/sometag\]
DEMO