Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby-Basics
37 articles
Ruby-String
5 posts
Popular Articles
Recent Articles
Ruby - String split() Method with Examples
Last Updated: 03 July 2020
split is a String class method in Ruby which is used to split the given string into an array of substrings based on a pattern specified.Here
...read more
Ruby
Ruby-Methods
Ruby-String
Ruby | String Interpolation
Last Updated: 02 January 2023
String Interpolation, it is all about combining strings together, but not by using the + operator. String Interpolation works only when we u
...read more
Technical Scripter
Ruby
Picked
Ruby-String
Ruby Search and Replace
Last Updated: 25 September 2019
sub and gsub string methods that use regular expressions, and their in-place variants are sub! and gsub!. The sub & sub! replaces the first
...read more
Ruby
Ruby-Methods
Ruby-String
Similar Topics
Web Technologies
40.2k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.6k+ articles
JavaScript
11.5k+ articles
Ruby
1.1k+ articles
Ruby-Methods
910+ articles
Ruby-Basics
37+ articles
Ruby | Regular Expressions
Last Updated: 17 September 2019
A regular expression is a sequence of characters that define a search pattern, mainly for use in pattern matching with strings. Ruby regular
...read more
Ruby
Picked
Ruby-Basics
Ruby-String
Ruby | String Basics
Last Updated: 30 July 2018
In Ruby, string is a sequence of one or more characters. It may consist of numbers, letters, or symbols. Here strings are the objects, and a
...read more
Ruby
Ruby-Basics
Ruby-String
1
1
1
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !