readme: example code uses regex test instead of exec