Regex: Match this string

regex, ruby

Solution

`s/\s+/ /g`

s/(?:\\[rnt])+/ /g

Problem

I can't figure this out: ``` 22.584\r\n\t\t\tl-6.579-22 ``` I want to match the `"\r\n\t\t\t"` and replace with a single space `" "`. Problem is the number of `"\t"`, `"\r"`, and `"\n"` fluctuates, as do the surrounding characters. Help!

Original source