SyntaxFix
Write A Post
Hire A Developer
Questions
There is a difference.
When the ^ character appears outside of [] matches the beginning of the line (or string). When the ^ character appears inside the [], it matches any character not appearing inside the [].
^
[]