We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@value = "bobcat" Remove 'bob' from this string in order to return a much tamer version. Use a non-destructive method to remove 'bob' from this string and return "cat":
@value = "bobcat"
Remove 'bob' from this string in order to return a much tamer version.
Use a non-destructive method to remove 'bob' from this string and return "cat":
>> @value.sub("bob", "")
Not yet...
I would expect any of these (and more) to work:
@value.sub("bob", "")
@value.gsub("bob", "")
@value.tr("bo", "")
@value[3..-1]
@value.gsub(/[bo]/, '')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I would expect any of these (and more) to work:
@value.sub("bob", "")
@value.gsub("bob", "")
@value.tr("bo", "")
@value[3..-1]
@value.gsub(/[bo]/, '')
The text was updated successfully, but these errors were encountered: