← Back to Ruby Operators

Tilde

The tilde character (~) is used in a handful of places in Ruby. There is regex matching (=~), a variation of heredoc syntax (<<~), and a unary operator (~0x1122334455), to name a few.