Fixed regex creation in UserAgent