regex get all word that start with code example Example: regex all starting with #check if word starts with "test" ^test.*$