DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUBY
substring replace in ruby
user_input = "mooventhan" user_input.gsub!(/moo/, "hel") print user_input
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#substring
#replace
#ruby
ADD COMMENT
Topic
COMMENT
Name
5+2 =
Submit