fix #1 using regex