[ad_1]
Try this:
a.gsub!(/(\W|\d)/, "")
=> "ABC"
b.gsub!(/(\W|\d)/, "")
=> "JE"
1
[ad_2]
solved regex for collect letter inside string ruby [closed]
[ad_1]
Try this:
a.gsub!(/(\W|\d)/, "")
=> "ABC"
b.gsub!(/(\W|\d)/, "")
=> "JE"
1
[ad_2]
solved regex for collect letter inside string ruby [closed]