Extract number with regex

Posted by Joey on Super User See other posts from Super User or by Joey
Published on 2013-11-12T16:32:43Z Indexed on 2013/11/12 21:57 UTC
Read the original article Hit count: 341

Filed under:

I have this string:

> HTTP/1.1 200 OK Date: Tue, 12 Nov 2013 15:26:17 GMT Server:
> Apache/2.2.3 (CentOS) Last-Modified: Fri, 08 Nov 2013 21:34:50 GMT
> ETag: "452//path/to/file"
> Accept-Ranges: bytes Content-Length: 26010 Connection: close
> Content-Type: text/plain; charset=UTF-8

And would like to extract 452 which is before // and after ETag, what regex to use? I am stuck.

Thanks a lot

© Super User or respective owner

Related posts about regex