Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Ruby
remove ascii characters from string ruby
Cowboy
Programming language:
Ruby
2021-03-25 05:37:22
0
Q:
remove ascii characters from string ruby
E. Brice
Code:
Ruby
2021-07-13 07:21:46
s.gsub!(/\P{ASCII}/, '')
0
Moolric
Code:
Ruby
2021-01-19 07:26:01
s.delete!("^\u{0000}-\u{007F}")
0
Tags
string
remove
character
characters
Related
ruby get substring between two characters
ruby extract number from string
ruby remove unsafe file characters
ruby substring remove
ruby replace certain character
how to split string into characters ruby
ruby read stdin
how to repeat a string n times in ruby
New to Communities?
Join the community