How can I remove the first character "#" of a string?
"fooo#oooooo#bar"
"fooooooooo#bar" "fooo#oooooo#bar".delete_first("#") // Exist some method like this?
sub (not gsub ) does the following:
gsub
"fooo#oooooo#bar".sub('#', '') #=> "fooooooooo#bar"
Source: https://habr.com/ru/post/1481451/More articles:Using the presence of an indexer as a parameter of a signature / contract / type parameter - c #Dependencies not loading or partially loading - vb.netIs JavaScript “not a function” compared to the “expected function”? - javascriptJavaScript Error "Function Expected" - javascriptWhere does Grails store a self-generated SSL certificate? - sslMahout: java.lang.NumberFormatException: for input line: - javaLua functions - a simple misunderstanding - functionAre PHP Closure Objects Suitable For Garbage Collection - closuresHow HTML, JS and CSS work - javascriptTypeError: prc.cng () is not a function in Firefox, Uncaught TypeError: Object # does not have a cng method in Chrome - javascriptAll Articles