match beginning of string regex code example Example: regex all starting with #check if word starts with "test" ^test.*$