SyntaxFix
Write A Post
Hire A Developer
Questions
🔍
[regex] How is the AND/OR operator represented as in Regular Expressions?
Home
Question
How is the AND/OR operator represented as in Regular Expressions?
Or you can use this:
^(?:part[12]|(part)1,\12)$
Examples related to
regex
•
Why my regexp for hyphenated words doesn't work?
•
grep's at sign caught as whitespace
•
Preg_match backtrack error
•
regex match any single character (one character only)
•
re.sub erroring with "Expected string or bytes-like object"
•
Only numbers. Input number in React
•
Visual Studio Code Search and Replace with Regular Expressions
•
Strip / trim all strings of a dataframe
•
return string with first match Regex
•
How to capture multiple repeated groups?
Examples related to
operators
•
What is the difference between i = i + 1 and i += 1 in a 'for' loop?
•
Using OR operator in a jquery if statement
•
What is <=> (the 'Spaceship' Operator) in PHP 7?
•
What does question mark and dot operator ?. mean in C# 6.0?
•
Boolean operators ( &&, -a, ||, -o ) in Bash
•
PowerShell and the -contains operator
•
How do I print the percent sign(%) in c
•
Using the && operator in an if statement
•
What do these operators mean (** , ^ , %, //)?
•
How to check if div element is empty