This document provides an introduction to regular expressions (regex) for text search and pattern matching. It explains that regex allows for powerful text searches beyond simple keywords. Various special symbols and constructs are demonstrated that allow matching complex patterns and variants in text. Examples show matching names, sequences, microsatellite repeats and more with regex. Functions, loops and logical operators in R programming are also briefly covered.