showing results for - "regex start string"
Henri
14 Jul 2016
1{ "Category" : /^ABC.*/ }
Tommaso
06 Aug 2016
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"]
similar questions
queries leading to this page
regex start string