reverted regex literals for legibility 

reverted regex literals change for legibility and maintainability