• +91 9723535972
  • info@interviewmaterial.com

Regular Expressions Interview Questions and Answers

Question - What is conditional matching in Regex?

Answer -

-Using conditional matching  match the text from one of two given patterns.

(?(capturinggroup) pattern1/pattern2)

((?\d{2}-)\b\d{2}\b | \b\d{4}\b)

12-222-9999

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners