test if regexp can search a string
test what a failed match would return
test if question mark means optional