adding regex instructions