Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
=~ is a matching operator : matching operator « String « Ruby
Ruby
String
matching operator
=~ is a matching operator
puts
"String contains no digits"
unless
"This is a test"
=~ /[0C9]/
Related examples in the same category
1.
if a string contains any vowels: