I have recently started learning about JavaScript regular expressions. I attempted the following expression for a string starting with the letter "p" followed by digits:
p1749350502
The letter "p" is constant and the remaining digits are variable. However, my attempt to create this expression was unsuccessful.
p^[0-9]$
Can someone please confirm whether this regular expression is correct or not?