inverse regex search for token
added test for compile