regex bug fix

fixed a bug in regex where slash (/) shall not be escaped