I need to print [PR:XXXXX] only.
Ex: [Test][PR:John][Finished][Reviewer:SE] to [PR:John] only. (PR tag)
Note:Other strings rather than the [PR:XXXXX] may changed time to time Ex:
[Test][PR:Cook][Completed]
[Test][Finished][PR:Russell][Reviewer:SE]
[Dump][Reviewer:SE][Complete][PR:Arnold]
Note: There are no multi line inputs and only one PR tag is included in all of inputs.
Untill I create following sed command but it did not work:
sed "s/\[PR:[^]]*\]//"