Hi Guest 1 HomePage 1 Jobs 1 WalkIn 1Articles 1 1
   

 :) Topic of Day
 

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 asp net questions
 :) Hot Jobs
 :)
 :) Most Searchable
 


  

 
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

InputAnswer:-

To view Solution for above Regex



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







  
 :) Categoriese
abc…Letters
123…Digits
dAny Digit
DAny Non-digit character
.Any Character
.Period
[abc]Only a, b, or c
[^abc]Not a, b, nor c
[a-z]Characters a to z
[0-9]Numbers 0 to 9
wAny Alphanumeric character
WAny Non-alphanumeric character
{m}m Repetitions
{m,n}m to n Repetitions
*Zero or more repetitions
+One or more repetitions
?Optional character
sAny Whitespace
SAny Non-whitespace character
^…$Starts and ends
(…)Capture Group
(a(bc))Capture Sub-group
(.*)Capture all
(abc|def)Matches abc or def
 :) Most Visited Questions

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...


What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...


Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...


Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...


Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...

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 |