Regex for string starting with a or b code example Example: regex all starting with #check if word starts with "test" ^test.*$