Programming With Ruby Episode 6, Strings
Loading...
5,234
Loading...
Uploader Comments (manwithcode)
see all
All Comments (34)
-
@CaptainGibbons lol what a coincidence I subscribed also. . . and I know you XD
-
@cashjamesPremium1 I haven't been able to reproduce the problem you're encountering, are you sure you've typed the code in correctly?
-
@manwithcode i am Running the Newest Version ,the latest version
-
@manwithcode i am using windows 7 Ultimate
Loading...
I don't really understand the scan expression. Could you explain more on what (/../) or (/\w\w/) do?
parks709 2 months ago
@parks709 What's surrounded by the "/"s is called a regular expression. It's a way of processing text. "." means, select any character. "\w" is for whitespace. Regular expressions are a huge topic, so just do a Google search to find out more.
manwithcode 2 months ago
You sir, have just earned yourself a subscriber.
CaptainGibbons 2 months ago
@CaptainGibbons Excellent! :)
manwithcode 2 months ago
I am using latest version of ruby interactive on windows 7. When I type "Hello".each_char do [x], the program is giving me an error that says undefined variable. Is there a way to fix this?
whitedragon812 2 months ago in playlist Programming With Ruby Tutorials
@whitedragon812 If the code looks the way you posted it in your comments, the problem is a syntax error. There aren't supposed to be square brackets around the x variable, it's supposed to be the pipe character (usually found above the enter key).
It should look like this: |x|
Not this: [x]
manwithcode 2 months ago