Matthew Lang avatar

Matthew Lang

Web developer amongst other things

TIL - Ruby edition

Table of Contents


    Matching a regex from a character to the end of the string

    To match from a colon (:) to the end of a line using a regular expression, you can use the following pattern:

    :.*$