• +91 9723535972
  • info@interviewmaterial.com

Regular Expressions Interview Questions and Answers

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.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners