At the moment I am using this line to take a string and extract only the letters from it:
string.scan(/[a-zA-Z]/).to_s
How do I modify this so that the underline character, "_", is also included? Thanks for reading.
At the moment I am using this line to take a string and extract only the letters from it:
string.scan(/[a-zA-Z]/).to_s
How do I modify this so that the underline character, "_", is also included? Thanks for reading.