selecting delimiter in regex while selecting portion between lines in case of perl

Posted by Gaurav S on Stack Overflow See other posts from Stack Overflow or by Gaurav S
Published on 2014-05-26T12:42:05Z Indexed on 2014/05/26 21:26 UTC
Read the original article Hit count: 140

Filed under:
|

The message has detection report:

<detection_report>
Test 1
Test 2 
Test 3
</detection_report>

---------------------------------------------
Have a nice day

I want to select portion between <detection_report> tags, including these two tags.

I have written following code.

The message has detection report\:((.|\n|\r)+)(\<\/detection_report\>)

but its not working. Can anyone help me with this.

© Stack Overflow or respective owner

Related posts about regex

Related posts about perl