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