in reply to Re^2: Matching text in a stringin thread Matching text in a string
I think the OPs logic is clear; he just mixed up his operator. (His implementation may also be flawed!)