Is there a more succinct way than @string.gsub(/regex/, '') to cut a pattern from a string?
@string.gsub(/regex/, '')
I know #slice exists, but I need a reverse of it, returning the portions that were not sliced.
#slice
Aucun commentaire:
Enregistrer un commentaire