Fixed regex to support the whitespace control modifier