regex improvement static serving