Use regexp for liquid compression