Ruby Programming: Coding For Beginners 2: Coding With Ease by Tommy Mertell

Ruby Programming: Coding For Beginners 2: Coding With Ease by Tommy Mertell

Author:Tommy Mertell
Language: eng
Format: azw3, epub, pdf
Publisher: UNKNOWN
Published: 2017-06-08T07:00:00+00:00


The first thing that you need is a Ruby Mixin that will handle your Regular Expression and each method is built for a very specific reason. Scan is meant for scanning objects constructed within Ruby. Sub is meant to match whatever your Regular Expression identifies and then substitute it with whatever you give it, but Sub will only do this for this for the first one it finds while Gsub will do this for every matching object. There are more, but there’s plenty of documentation on how the hell those work so let’s actually get into how RegEx works.

First, you have our /Ruby/ that you saw and this has the core components of what makes up a Regular Expression. In order to start and end a Regular Expression, you must use / and that’s all there is to that. Whatever goes in on the inside is what will be targeted. In our case, we wanted the exact phrase of Ruby so we just typed in Ruby. This means it will not find ruby, rUBY, and especially not rUbY. Regular Expression is case sensitive. Now, there are cheat sheets out there that will tell you a good portion of what each one does but we’re going to cover the important ones.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.