change regex for security reason

- secure expressions to express line beginning/end