I noticed that Feedzirra uses this regex to get the ETag from response header:
/.*ETag:\s(.*)\r/
Personally I would have written this one:
/ETag:\s(.*)\n/
Here the questions:
- Why does it put .* at the beginning even if it is unnecessary (\A is not specified)?
- Why does it use \r instead of \n? What is the difference?