1// Match from the start of the line
2^
3//example:
4let str = "HELLO hello world"
5let reg = /hello/g //g option: doesn't stop at first match
6str.match(reg) // Array(2)["HELLO", "hello"]
7reg = /^hello/g //match hello at the start of the string
8str.match(reg) // Array(1)["HELLO"]