EDIT: your regex matches the whole string because it means... "hello" followed by any number of *anythings* up to the first occurrence of "money") you see?