Change regex escape to ~ instead of slash to avoid butchering division