Wanted to do global pattern search on a string but /pat/g does not work. How
is this done in Ruby?

Thanks in advance and best regards
Franz GEIGER