在不使用修饰符的情况下尝试使用多行进行马赫句

i'm trying to catch a sentence between to tags for example

#<b>(.+)</b>#is

<b>sentense</b>

but the problem when i add new line i cant catch it.

i tried to use modifier s but when i use multi b tags it catch first b tag

and last close b tag

for example :

<b>hello every one </b> are you great <b>i hope you so</b>

it will catch from

hello every one </b> are you great <b>i hope you so

You can try: #<b>(.+?)</b>#is

The ? makes it non-greedy.