- Ruby deals with strings as well as numerical data. A string may be double-quoted ("...") or single-quoted ('...').
Expression Substitution:
- Expression substitution is a means of embedding the value of any Ruby expression into a string using #{ and }.
Example:
General Delimited Strings:
- With general delimited strings, you can create strings inside a pair of matching though arbitrary delimiter characters, e.g., !, (, {, <, etc., preceded by a percent character (%). Q, q, and x have special meanings.
Ruby Parser:
- The Gosu and Nokogiri gem is a fantastic library that serves virtually all of our HTML scraping needs. Once you have it installed, you will likely use it for the remainder of your web-crawling career.
Example :
- I have taken Stona FIGSI 2016 website for doing parser string manipulations in Ruby programming language.
And here is the output for the above code :
No comments:
Post a Comment