Fix for regexp limit search

Hey - I've put the tests for #5 and #6 into separate commits and added the pull.take fix into the third

thanks for telling me how to organize commits - I never know quite the best way but have half a clue now