regular expression for string starting with and ending with code example Example: regex all starting with #check if word starts with "test" ^test.*$