I tested this regex in isolation using a scratch PHP file to check its behavior. I then patched it into our instance of Phabricator and tried linking a JIRA account to a Phabricator account and saw that it succeeded.
An example response that would not parse correctly before is
```
HTTP/1.1 200
Content-Type: text/plain
content
```