I need to truncate part of the string which doesn't match a given pattern. Let's say the string is:

```
s = "Lorem ipsum dolor sit amet"

```

My matching pattern would be `ipsum dolor` and I would like to truncate all the rest, so that:

```
s.gsub(/_the_pattern_/, '') # => "ipsum dolor"

```