fixed deprecated regex syntax