blob: 956e6b82c6a7eb9bba9b496d321f96db0940c526 (
plain)
1
2
3
4
5
|
# Regexp or division?
some_string.to_i /\s+/
some_string.split / +/ this is a regexp after a division /
some_string.split / + / this one, too /
some_string.split /- / # and this one is a regexp without division
|