0 votes
in ReactJS by
What is the difference between ^ and \A in Regular expressions?

1 Answer

0 votes
by
- 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.
...