use regex insted of re
test for #201
prevent looping on error by evernote recommendation