Hi Guest 1 HomePage 1 Jobs 1 WalkIn 1Articles  

 :) Latest Topic
Regex Tutorial
Regex introduction 2nd step and matching Digits
Nested Groups
More Group Work
Conditional Regex
Other Special Character
Regex introduction about the Wild Character The Dot third chapter
Regex for Matching Specific characters excluding or include some characters
Regex for doing Character Ranges
Regex for repeat of some character
Regex for occurance of any character in range 0 to n
Optional Charcters
Regex Whitespace Handling
Regex to Match Start and End in string
Match Groups
 


  

 
Conditional Regex
Question Posted on 23 Apr 2020

Home >> Tutorial >> Regex >> Conditional Regex


Conditional Regex
When we had condition to select or not or choose some values as optional . For example we have values are "Car|Scooter|Cycle" here we can use "or". You have to write for below regex where you need to match 2 values and need to skip 2 values.

(14)conditional :- Optional OR
Task    Text
Match    i Love Hat
Match    i Love Rat
  Skip     i Love Led
  Skip     i Love Bed
Website:- i Love (Hat|Rat)
Website:- i Love (Hat|Rat)





Other Important Questions
Regex Tutorial
Regex introduction 2nd step and matching Digits
Nested Groups
More Group Work
Conditional Regex







 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |