Regular Expressions: Match Beginning String Patterns doubt

let rickyAndCal = "Cal and Ricky both like racing.";
let calRegex = /^[a-z]/gi; // Change this line
let result = calRegex.test(rickyAndCal);
let arr=rickyAndCal.match(calRegex)
console.log(arr);

the arr should have the value “Cal and Ricky both like racing.”…but is having only “C” .
why?

the problem is here
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/match-beginning-string-patterns

there is a statement in the above link Outside of a character set, the caret is used to search for patterns at the beginning of strings.

Change the regex ohRegex to match only 3 to 6 letter h’s in the word “Oh no”.

i want to know the difference between using



let rickyAndCal = "Cal and Ricky both like racing.";
let calRegex = /^[a-z]al/gi; // Change this line
let calRegex = /^Cal/; // Change this line
let result = calRegex.test(rickyAndCal);
//console.log(result)
let arr=rickyAndCal.match(calRegex)
console.log(arr);

both of them have arr value as "Cal"