Ruby regex split at last symbol presence
I'm a bit obsessed with this, and I'm not 1.8 yet either, so I don't have a look.
I have a bunch of lines that might look like this:
"a/b/c/d/e/f 1/2/3"
to which I want to go:
"a/b/c/d/e" "f" "1/2" "3"
So, basically I want it to break on the last slash before the start of the space. I feel like I can do it fine, but the split always seems strange.
+2
source to share