Question - What is the difference between ^ and \A in Regular expressions?
Answer -
^ - Matches the starting of the line. Effecting the multiline mode
Ex: ^Bob
Bob is good
Bob is Nice
-> if used this in character class working as a negate character.
[^abc] - matching anything except a,b,c
\A - Matches the starting of the line. Not effecting the multiline mode.
Ex: \ABob - Bob is good.