I am attempting to become better acquainted with Ruby Regex and I came accros this in one of my codewars.com answers.
My current comprehension of this Regex is as follows. the \W
means any non-word character. I am assuming that the pipe symbol means something to the effect of between every character and I think that the underscore means all underscores between charecters.
Am I even close? All criticism is welcomed. Thank you.
/\W|_/