Shorter regex with threejs support.