For example, I installed them:
L = /[az,AZ,ßäüöÄÖÜ]/ V = /[äöüÄÖÜaeiouAEIOU]/ K = /[ßb-zBZ&&[^#{V}]]/
So, /(#{K}#{V}{2})/ matches "ᄚ" in "azAZᄚ" .
Are there any better ways to deal with them?
Can I put these constants in a module in a file somewhere in my Ruby installation folder, so I can include / require them in any new script that I write on my computer? (I'm a newbie and I know that I am confusing this terminology, please correct me.)
Also, I can only get the metacharacters \L , \V and \K (or whatever is not already set in Ruby) to stand behind them in regexes, so I don’t need to do this interpolation line thing all the time?
source share