in reply to Re^2: Pattern matching
in thread Pattern matching

To be more precise: your expression matches only strings containing "tom" immediately followed by "dick", "harry" or "john".