[ruby] How to match all occurrences of a regex