Fix regex implementation.
Added http timeout.