What is the $ Symbol in RegEx?
The $ is one of the RegEx characters known as metacharacters. It matches the end of a string and would only return a match when the text or string it is attached to is at the end of a line.
This is useful in cases where you want to ensure that a string ends with a certain pattern or character.