// Match from the start of the line
^
//example:letstr = "HELLO hello world"let reg = /hello/g //g option: doesn't stop at first matchstr.match(reg) // Array(2)["HELLO", "hello"]
reg = /^hello/g //match hello at the start of the stringstr.match(reg) // Array(1)["HELLO"]