Added regular expression parsing so that [[ATTACHMENT| prefix and ]] suffix don't have to occupy a whole line

I propose regular expression instead of new line splitting for attachment parsing. I have a use case on which output is always prefixed by ant/maven. For example:
```
[junit] [[ATTACHMENT|files/misc-suite-3]]
```