Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is conditional matching in Regex?
Home
ReactJS
What is conditional matching in Regex?
0
votes
asked
Aug 17, 2023
in
ReactJS
by
GeorgeBell
What is conditional matching in Regex?
regular-expression-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Aug 17, 2023
by
GeorgeBell
-Using conditional matching match the text from one of two given patterns.
(?(capturinggroup) pattern1/pattern2)
((?<n2>\d{2}-)\b\d{2}\b | \b\d{4}\b)
12-222-9999
...