Im coding my fist program in ruby.
I want to select all characters from a string except of whitespace and nonword characters to compare to my other string.
I know i can select nonwhite space characters by using \S on my string and I can select word only characters by calling \w on my string but i cant find anywhere how to combine those two to select only nonwhitespace word characters only.
Im coding my fist program in ruby. I want to select all characters from
Share
Word characters are all nonwhitespace characters, so
\wwill suffice.