fixed regex being character specific ('lines' is used as well)