add conversion to regexp
add start and end processing