Posts by Eduardo Henrique Bogoni • 11 points
1 post
- 
		1 votes3 answers169 viewsA: check if you have a comma and delete a comma if you have it in the string by RubyUse the method String#sub which replaces the first occurrence of a string or pattern: "meu nome é neymar,".sub(/,\z/, '') => "meu nome é neymar" "substitui so a , do final,".sub(/,\z/, '') =>… rubyanswered Eduardo Henrique Bogoni 11